Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
fix org getter on import and export warning dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Dec 22, 2020
1 parent 573eea6 commit aa1499f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/angular/components/export.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ export class ExportComponent {
return;
}

const acceptedWarning = await this.platformUtilsService.showDialog(
this.i18nService.t(this.encryptedFormat ? 'encExportWarningDesc' : 'exportWarningDesc'),
this.i18nService.t('confirmVaultExport'), this.i18nService.t('exportVault'),
this.i18nService.t('cancel'), 'warning');

if (!acceptedWarning) {
return;
}

const keyHash = await this.cryptoService.hashPassword(this.masterPassword, null);
const storedKeyHash = await this.cryptoService.getKeyHash();
if (storedKeyHash != null && keyHash != null && storedKeyHash === keyHash) {
Expand Down
2 changes: 1 addition & 1 deletion src/importers/baseImporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export abstract class BaseImporter {
skipEmptyLines: false,
};

protected organization() {
protected get organization() {
return this.organizationId != null;
}

Expand Down

0 comments on commit aa1499f

Please sign in to comment.