From 3ed68a5576fb71a8aa5de6d8da6ab98809c49143 Mon Sep 17 00:00:00 2001 From: Rafal Korszun Date: Thu, 1 Feb 2018 14:24:18 +0100 Subject: [PATCH] open in browser download link of new version of trec app --- .../accounts/edit-account/edit-account.component.html | 2 +- .../accounts/edit-account/edit-account.component.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/components/accounts/edit-account/edit-account.component.html b/src/app/components/accounts/edit-account/edit-account.component.html index 7e52ebd..1b5145c 100644 --- a/src/app/components/accounts/edit-account/edit-account.component.html +++ b/src/app/components/accounts/edit-account/edit-account.component.html @@ -9,7 +9,7 @@
PUBLISHED: {{version.published_at | date:"dd-MM-yyyy"}}

- Download new version + Download new version
diff --git a/src/app/components/accounts/edit-account/edit-account.component.ts b/src/app/components/accounts/edit-account/edit-account.component.ts index d7ccc3f..a088c64 100644 --- a/src/app/components/accounts/edit-account/edit-account.component.ts +++ b/src/app/components/accounts/edit-account/edit-account.component.ts @@ -8,6 +8,7 @@ import { RemoteAccount } from 'app/models/RemoteAccount'; import { AccountService } from '../../../services/account.service' import { ToasterService } from '../../../services/toaster.service' import { versions } from '../../../../environments/versions' +import { shell } from 'electron'; @Component({ @@ -64,6 +65,10 @@ export class EditAccountComponent implements OnInit { ) } + public async openInBrowser(url : string){ + shell.openExternal(url); + } + editNameOrUrl(account) { this.databaseService.editAccount(account).then(data => { this.toasterService.showToaster('Account updated!', "success")