export case for edge

This commit is contained in:
Kyle Spearrin 2018-04-13 22:18:21 -04:00
parent bbee1790e1
commit 46ac5e2065
2 changed files with 12 additions and 2 deletions

View File

@ -72,7 +72,8 @@
<div class="row-main">{{'importItems' | i18n}}</div>
<i class="fa fa-chevron-right fa-lg row-sub-icon"></i>
</a>
<a class="box-content-row box-content-row-flex text-default" routerLink="/export">
<a class="box-content-row box-content-row-flex text-default" href="#"
appStopClick appBlurClick (click)="export()">
<div class="row-main">{{'exportVault' | i18n}}</div>
<i class="fa fa-chevron-right fa-lg row-sub-icon"></i>
</a>
@ -86,7 +87,7 @@
<div class="box list">
<div class="box-header">{{'other' | i18n}}</div>
<div class="box-content single-line">
<a class="box-content-row box-content-row-flex text-default" routerLink="/options">
<a class="box-content-row box-content-row-flex text-default" routerLink="/options">
<div class="row-main">{{'options' | i18n}}</div>
<i class="fa fa-chevron-right fa-lg row-sub-icon"></i>
</a>

View File

@ -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/');