From 46ac5e2065fc8506935c5fdd529da9e916cf356d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 13 Apr 2018 22:18:21 -0400 Subject: [PATCH] export case for edge --- src/popup/settings/settings.component.html | 5 +++-- src/popup/settings/settings.component.ts | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/popup/settings/settings.component.html b/src/popup/settings/settings.component.html index acd6ba5649..85bd4efe50 100644 --- a/src/popup/settings/settings.component.html +++ b/src/popup/settings/settings.component.html @@ -72,7 +72,8 @@
{{'importItems' | i18n}}
- +
{{'exportVault' | i18n}}
@@ -86,7 +87,7 @@
{{'other' | i18n}}
- +
{{'options' | i18n}}
diff --git a/src/popup/settings/settings.component.ts b/src/popup/settings/settings.component.ts index 2e42012616..11321f4226 100644 --- a/src/popup/settings/settings.component.ts +++ b/src/popup/settings/settings.component.ts @@ -128,6 +128,15 @@ export class SettingsComponent implements OnInit { BrowserApi.createNewTab('https://help.bitwarden.com/article/import-data/'); } + export() { + if (this.platformUtilsService.isEdge()) { + BrowserApi.createNewTab('https://help.bitwarden.com/article/export-your-data/'); + return; + } + + this.router.navigate(['/export']); + } + help() { this.analytics.eventTrack.next({ action: 'Clicked Help and Feedback' }); BrowserApi.createNewTab('https://help.bitwarden.com/');