From f7618e180aa0b58c3f9f4da49211818f6755af19 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Fri, 3 Mar 2023 10:14:25 +1000 Subject: [PATCH] Fix duplicate success toast on license upload (#4820) --- .../billing/organization-subscription-selfhost.component.ts | 5 ----- apps/web/src/app/settings/update-license.component.ts | 6 +++++- apps/web/src/locales/en/messages.json | 3 --- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/apps/web/src/app/organizations/billing/organization-subscription-selfhost.component.ts b/apps/web/src/app/organizations/billing/organization-subscription-selfhost.component.ts index 824447c1224..774e07d65d8 100644 --- a/apps/web/src/app/organizations/billing/organization-subscription-selfhost.component.ts +++ b/apps/web/src/app/organizations/billing/organization-subscription-selfhost.component.ts @@ -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() { diff --git a/apps/web/src/app/settings/update-license.component.ts b/apps/web/src/app/settings/update-license.component.ts index 6a43a9df99f..3554a930d6f 100644 --- a/apps/web/src/app/settings/update-license.component.ts +++ b/apps/web/src/app/settings/update-license.component.ts @@ -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); diff --git a/apps/web/src/locales/en/messages.json b/apps/web/src/locales/en/messages.json index a6fe888ad1f..829a3e2230c 100644 --- a/apps/web/src/locales/en/messages.json +++ b/apps/web/src/locales/en/messages.json @@ -2062,9 +2062,6 @@ "updateLicense": { "message": "Update license" }, - "updatedLicense": { - "message": "Updated license" - }, "manageSubscription": { "message": "Manage subscription" },