dismiss export screen when success

This commit is contained in:
Kyle Spearrin 2018-01-15 21:59:25 -05:00
parent 4f1880b0f6
commit 6ab4086330
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
class BrowserApi {
static isSafariApi: boolean = (typeof safari !== 'undefined');
static isChromeApi: boolean = (typeof chrome !== 'undefined');
static isSafariApi: boolean = (typeof safari !== 'undefined') &&
navigator.userAgent.indexOf(' Safari/') !== -1 && navigator.userAgent.indexOf('Chrome') === -1;
static isChromeApi: boolean = !BrowserApi.isSafariApi && (typeof chrome !== 'undefined');
static async getTabFromCurrentWindowId(): Promise<any> {
if (BrowserApi.isChromeApi) {

View File

@ -42,6 +42,7 @@ export class ExportController {
const csv = await this.getCsv();
this.$analytics.eventTrack('Exported Data');
this.downloadFile(csv);
this.$state.go('tabs.tools', { animation: 'out-slide-down' });
} else {
this.toastr.error(this.i18n.invalidMasterPassword, this.i18n.errorsOccurred);
}