Skip to content

Commit

Permalink
24679 - fix 'undefined' text in dialog for deleting IA and registrati…
Browse files Browse the repository at this point in the history
…on (#97)

* 24679 - fix 'undefined' text in dialog for deleting IA and registration

* fix dialog title for deleting continuation authorization
  • Loading branch information
patrickpeinanw authored Dec 5, 2024
1 parent ca46468 commit c4d0d60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/components/bcros/todo/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ const confirmDeleteDraft: DialogOptionsI = {
}
const confirmDeleteApplication: DialogOptionsI = {
title: t('text.dialog.confirmDeleteApplication.title').replace('FILING_NAME', filingTypeToName(prop.item.name)),
title: t('text.dialog.confirmDeleteApplication.title').replace(
'FILING_NAME',
filingTypeToName(prop.item.name, undefined, undefined, prop.item.status as FilingStatusE)
),
text: t('text.dialog.confirmDeleteApplication.text').replace('DRAFT_TITLE', prop.item.draftTitle),
textExtra: ['You will be returned to the Business Registry page.'], // TO-DO: different text for name request
hideClose: true,
Expand Down
6 changes: 3 additions & 3 deletions src/utils/todo/task-filing/content-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ export const getDraftTitle = (filing: TaskToDoI): string => {
case FilingTypes.CONTINUATION_OUT:
return FilingNames.CONTINUATION_OUT
case FilingTypes.CONTINUATION_IN:
return FilingNames.CONTINUATION_IN_APPLICATION
return FilingNames.CONTINUATION_AUTHORIZATION
case FilingTypes.CONVERSION:
return FilingNames.CONVERSION
case FilingTypes.CORRECTION:
return filingTypeToName(FilingTypes.CORRECTION)
case FilingTypes.DISSOLUTION:
return filingTypeToName(FilingTypes.DISSOLUTION)
case FilingTypes.INCORPORATION_APPLICATION:
return filing.displayName
return FilingNames.INCORPORATION_APPLICATION
case FilingTypes.REGISTRATION:
return filing.displayName
return FilingNames.REGISTRATION
case FilingTypes.RESTORATION:
return filingTypeToName(FilingTypes.RESTORATION, null, filing.restoration.type)
case FilingTypes.SPECIAL_RESOLUTION:
Expand Down

0 comments on commit c4d0d60

Please sign in to comment.