Fix duplicate success toast on license upload (#4820)

This commit is contained in:
Thomas Rittson 2023-03-03 10:14:25 +10:00 committed by GitHub
parent a02f9e3a14
commit f7618e180a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

View File

@ -128,11 +128,6 @@ export class OrganizationSubscriptionSelfhostComponent implements OnInit, OnDest
licenseUploaded() {
this.load();
this.messagingService.send("updatedOrgLicense");
this.platformUtilsService.showToast(
"success",
null,
this.i18nService.t("licenseUploadSuccess")
);
}
manageBillingSyncSelfHosted() {

View File

@ -54,7 +54,11 @@ export class UpdateLicenseComponent {
});
await this.formPromise;
this.platformUtilsService.showToast("success", null, this.i18nService.t("updatedLicense"));
this.platformUtilsService.showToast(
"success",
null,
this.i18nService.t("licenseUploadSuccess")
);
this.onUpdated.emit();
} catch (e) {
this.logService.error(e);

View File

@ -2062,9 +2062,6 @@
"updateLicense": {
"message": "Update license"
},
"updatedLicense": {
"message": "Updated license"
},
"manageSubscription": {
"message": "Manage subscription"
},