mirror of
https://github.com/bitwarden/clients.git
synced 2026-06-04 21:04:29 +08:00
Added error message toast (#19672)
This commit is contained in:
parent
7e669a53bc
commit
7b1ed66830
@ -2121,6 +2121,9 @@
|
||||
"exportSuccess": {
|
||||
"message": "Vault data exported"
|
||||
},
|
||||
"exportError": {
|
||||
"message": "An error occurred while exporting your vault data"
|
||||
},
|
||||
"passwordGenerator": {
|
||||
"message": "Password generator"
|
||||
},
|
||||
|
||||
@ -551,6 +551,11 @@ export class ExportComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
this.exportForm.clearValidators();
|
||||
} catch (e) {
|
||||
this.logService.error(e);
|
||||
this.toastService.showToast({
|
||||
variant: "error",
|
||||
title: this.i18nService.t("errorOccurred"),
|
||||
message: this.i18nService.t("exportError"),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user