mirror of
https://github.com/bitwarden/browser.git
synced 2025-03-24 15:39:43 +01:00
Fix duplicate success toast on license upload (#4820)
This commit is contained in:
parent
a02f9e3a14
commit
f7618e180a
@ -128,11 +128,6 @@ export class OrganizationSubscriptionSelfhostComponent implements OnInit, OnDest
|
|||||||
licenseUploaded() {
|
licenseUploaded() {
|
||||||
this.load();
|
this.load();
|
||||||
this.messagingService.send("updatedOrgLicense");
|
this.messagingService.send("updatedOrgLicense");
|
||||||
this.platformUtilsService.showToast(
|
|
||||||
"success",
|
|
||||||
null,
|
|
||||||
this.i18nService.t("licenseUploadSuccess")
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
manageBillingSyncSelfHosted() {
|
manageBillingSyncSelfHosted() {
|
||||||
|
@ -54,7 +54,11 @@ export class UpdateLicenseComponent {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await this.formPromise;
|
await this.formPromise;
|
||||||
this.platformUtilsService.showToast("success", null, this.i18nService.t("updatedLicense"));
|
this.platformUtilsService.showToast(
|
||||||
|
"success",
|
||||||
|
null,
|
||||||
|
this.i18nService.t("licenseUploadSuccess")
|
||||||
|
);
|
||||||
this.onUpdated.emit();
|
this.onUpdated.emit();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
|
@ -2062,9 +2062,6 @@
|
|||||||
"updateLicense": {
|
"updateLicense": {
|
||||||
"message": "Update license"
|
"message": "Update license"
|
||||||
},
|
},
|
||||||
"updatedLicense": {
|
|
||||||
"message": "Updated license"
|
|
||||||
},
|
|
||||||
"manageSubscription": {
|
"manageSubscription": {
|
||||||
"message": "Manage subscription"
|
"message": "Manage subscription"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user