1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-12 22:44:11 +00:00

removing unnecessary properties

This commit is contained in:
CarleyDiaz-Bitwarden
2022-06-21 18:11:47 -04:00
parent 777ea96261
commit e89ec5901e
2 changed files with 32 additions and 33 deletions

View File

@@ -95,10 +95,6 @@ export class ExportComponent implements OnInit {
return;
}
if (!this.validForm) {
return;
}
try {
this.formPromise = this.getExportData();
const data = await this.formPromise;
@@ -200,30 +196,6 @@ export class ExportComponent implements OnInit {
await this.eventService.collect(EventType.User_ClientExportedVault);
}
get validForm() {
if (
this.fileEncryptionType == EncryptedExportType.FileEncrypted &&
this.format == "encrypted_json"
) {
if (this.password.length > 0 || this.confirmPassword.length > 0) {
if (this.password != this.confirmPassword) {
this.platformUtilsService.showToast(
"error",
this.i18nService.t("errorOccurred"),
this.i18nService.t("filePasswordAndConfirmFilePasswordDoNotMatch")
);
return false;
}
this.encryptionPassword = this.password;
return true;
}
} else {
this.clearPasswordField();
return true;
}
}
protected clearPasswordField() {
this.encryptionPassword = "";
}