mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
fix org getter on import and export warning dialog (#238)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user