mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-16 20:21:31 +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;
|
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 keyHash = await this.cryptoService.hashPassword(this.masterPassword, null);
|
||||||
const storedKeyHash = await this.cryptoService.getKeyHash();
|
const storedKeyHash = await this.cryptoService.getKeyHash();
|
||||||
if (storedKeyHash != null && keyHash != null && storedKeyHash === keyHash) {
|
if (storedKeyHash != null && keyHash != null && storedKeyHash === keyHash) {
|
||||||
|
@ -76,7 +76,7 @@ export abstract class BaseImporter {
|
|||||||
skipEmptyLines: false,
|
skipEmptyLines: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
protected organization() {
|
protected get organization() {
|
||||||
return this.organizationId != null;
|
return this.organizationId != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user