dismiss export screen when success
This commit is contained in:
parent
4f1880b0f6
commit
6ab4086330
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue