diff --git a/src/locales/en-US.json b/src/locales/en-US.json index 6380fb021d..bde981adc5 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -383,10 +383,8 @@ "errorDeleteCertificate": "Error deleting certificate.", "errorReplaceCertificate": "Error replacing certificate.", "successAddCertificate": "Successfully added %{certificate}.", - "successAddedHTTPCertificate": "Successfully added %{certificate}. Reload the browser page to see the changes.", "successDeleteCertificate": "Successfully deleted %{certificate}.", - "successReplaceCertificate": "Successfully replaced %{certificate}.", - "successReplacedHTTPCertificate": "Successfully replaced %{certificate}. Reload the browser page to see the changes." + "successReplaceCertificate": "Successfully replaced %{certificate}." } }, "pageChangePassword": { diff --git a/src/store/modules/SecurityAndAccess/CertificatesStore.js b/src/store/modules/SecurityAndAccess/CertificatesStore.js index 9ba470c1a4..4d1abe90a1 100644 --- a/src/store/modules/SecurityAndAccess/CertificatesStore.js +++ b/src/store/modules/SecurityAndAccess/CertificatesStore.js @@ -211,21 +211,9 @@ export const CertificatesStore = defineStore('certificates', { }) .then(() => this.getCertificates()) .then(() => { - if (typeOfCertificate === 'HTTPS Certificate') { - return i18n.global.t( - 'pageCertificates.toast.successAddedHTTPCertificate', - { - certificate: getCertificateProp(type, 'label'), - } - ); - } else { - return i18n.global.t( - 'pageCertificates.toast.successAddCertificate', - { - certificate: getCertificateProp(type, 'label'), - } - ); - } + return i18n.global.t('pageCertificates.toast.successAddCertificate', { + certificate: getCertificateProp(type, 'label'), + }); }) .catch((error) => { console.log(error); @@ -281,21 +269,12 @@ export const CertificatesStore = defineStore('certificates', { this.getCertificates(); }) .then(() => { - if (typeOfCertificate === 'HTTPS Certificate') { - return i18n.global.t( - 'pageCertificates.toast.successReplacedHTTPCertificate', - { - certificate: getCertificateProp(type, 'label'), - } - ); - } else { - return i18n.global.t( - 'pageCertificates.toast.successReplaceCertificate', - { - certificate: getCertificateProp(type, 'label'), - } - ); - } + return i18n.global.t( + 'pageCertificates.toast.successReplaceCertificate', + { + certificate: getCertificateProp(type, 'label'), + } + ); }) .catch((error) => { console.log(error);