mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-09 09:51:02 +01:00
fix org getter on import and export warning dialog (#238)
This commit is contained in:
parent
573eea66ee
commit
91c61aea58
@ -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) {
|
||||
|
@ -76,7 +76,7 @@ export abstract class BaseImporter {
|
||||
skipEmptyLines: false,
|
||||
};
|
||||
|
||||
protected organization() {
|
||||
protected get organization() {
|
||||
return this.organizationId != null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user