diff --git a/business-registry-dashboard/app/components/Modal/RemoveBusiness/index.vue b/business-registry-dashboard/app/components/Modal/RemoveBusiness/index.vue index 7af3f53..49c6536 100644 --- a/business-registry-dashboard/app/components/Modal/RemoveBusiness/index.vue +++ b/business-registry-dashboard/app/components/Modal/RemoveBusiness/index.vue @@ -21,7 +21,10 @@ async function removeBusiness (resetPasscodeEmail: string, resetPasscode = true) payload.passcodeResetEmail = resetPasscodeEmail payload.resetPasscode = resetPasscode await affStore.removeBusiness(payload) - toast.add({ title: t('modal.removeBusiness.index.successToast') }) // add success toast + const toastMessage = payload.business.corpType.code === CorpTypes.NAME_REQUEST + ? t('modal.removeBusiness.index.nameRequestSuccessToast') + : t('modal.removeBusiness.index.businessSuccessToast') + toast.add({ title: toastMessage }) brdModal.close() } catch (error) { logFetchError(error, 'Error removing business') diff --git a/business-registry-dashboard/app/locales/en-CA.ts b/business-registry-dashboard/app/locales/en-CA.ts index eceb290..437d4bc 100644 --- a/business-registry-dashboard/app/locales/en-CA.ts +++ b/business-registry-dashboard/app/locales/en-CA.ts @@ -582,7 +582,8 @@ export default { } }, index: { - successToast: 'Business successfully removed from your list.' + businessSuccessToast: 'Business successfully removed from your list.', + nameRequestSuccessToast: 'Name Request successfully removed from your list.' } } }, diff --git a/business-registry-dashboard/app/locales/fr-CA.ts b/business-registry-dashboard/app/locales/fr-CA.ts index 27ad4ee..fe5a9c4 100644 --- a/business-registry-dashboard/app/locales/fr-CA.ts +++ b/business-registry-dashboard/app/locales/fr-CA.ts @@ -573,7 +573,8 @@ export default { } }, index: { - successToast: 'Entreprise supprimée avec succès de votre liste.' + businessSuccessToast: 'Entreprise supprimée avec succès de votre liste.', + nameRequestSuccessToast: 'Demande de nom supprimée avec succès de votre liste.' } }, words: { diff --git a/business-registry-dashboard/package.json b/business-registry-dashboard/package.json index 5083511..46d6fd1 100644 --- a/business-registry-dashboard/package.json +++ b/business-registry-dashboard/package.json @@ -2,7 +2,7 @@ "name": "business-registry-dashboard", "private": true, "type": "module", - "version": "0.0.12", + "version": "0.0.13", "scripts": { "build-check": "nuxt build", "build": "nuxt generate",