Skip to content

Commit

Permalink
fix: fixed table row removal toast text (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
JazzarKarim authored Jan 3, 2025
1 parent 5a85717 commit 011d0c8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 2 additions & 1 deletion business-registry-dashboard/app/locales/en-CA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion business-registry-dashboard/app/locales/fr-CA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion business-registry-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 011d0c8

Please sign in to comment.