Skip to content

Commit

Permalink
add entityFirm stuff back to voluntary dissolution
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Nov 4, 2024
1 parent babbf99 commit 9a3ea01
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/components/bcros/filing/item/DissolutionVoluntary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import type { ApiResponseFilingI } from '#imports'
import { FilingStatusE, isFilingStatus } from '#imports'
const { isEntityFirm } = useBcrosBusiness()
const { currentBusinessName, businessConfig } = storeToRefs(useBcrosBusiness())
const t = useNuxtApp().$i18n.t
Expand All @@ -17,6 +18,14 @@ const unknownStr = `[${t('text.general.unknown')}]`
const entityTitle = computed(() => businessConfig.value?.dissolutionConfirmation?.entityTitle || unknownStr)
const actTitle = computed(() => businessConfig.value?.dissolutionConfirmation?.act || unknownStr)
/** The dissolution date-time submitted to display. */
const dissolutionDateSubmittedPacific =
props.filing.submittedDate ? dateToPacificDateTime(new Date(props.filing.submittedDate)) : unknownStr
/** The dissolution date to display. */
const dissolutionDateIso = props.filing.data?.dissolution?.dissolutionDate
const date = yyyyMmDdToDate(dissolutionDateIso)
const dissolutionDatePacific = dateToPacificDate(date, true) || unknownStr
/** The dissolution date-time to display. */
const dissolutionDateTime =
props.filing.effectiveDate ? dateToPacificDateTime(new Date(props.filing.effectiveDate)) : unknownStr
Expand All @@ -39,7 +48,20 @@ const dissolutionDateTime =
<div v-else-if="isStatusCompleted" data-cy="completed-dissolution-details">
<strong>{{ $t('text.filing.dissolution.completed') }}</strong>

<p class="mt-3">
<p v-if="isEntityFirm()" class="mt-3">
{{ $t('text.filing.dissolution.theStatementOf') }} {{ entityTitle }} {{ currentBusinessName || '' }}

Check warning on line 52 in src/components/bcros/filing/item/DissolutionVoluntary.vue

View workflow job for this annotation

GitHub Actions / linting (20)

Expected indentation of 10 spaces but found 8 spaces
{{ $t('text.filing.dissolution.wasSuccessfully') }}&nbsp;{{ $t('text.filing.dissolution.submittedOn') }}&nbsp;
<strong>{{ dissolutionDateSubmittedPacific }}</strong>
{{ $t('text.filing.dissolution.withDissolutionDateOf') }}&nbsp;<strong>{{ dissolutionDatePacific }}</strong>.
{{ $t('text.general.the') }}&nbsp;{{ entityTitle }} {{
$t('text.filing.dissolution.hasBeenStruckAndDissolved')
}},
{{ $t('text.filing.dissolution.ceasedToBe') }}
{{ $t('text.filing.dissolution.aRegistered') }}&nbsp;{{ entityTitle }}
{{ $t('text.filing.dissolution.underThe') }}&nbsp;{{ actTitle }} Act.
</p>

<p v-else class="mt-3">
{{ $t('text.general.the') }}&nbsp;{{ entityTitle }} {{ currentBusinessName || '' }}
{{ $t('text.filing.dissolution.wasSuccessfully') }}&nbsp;
<strong>{{ $t('text.filing.dissolution.dissolvedOn') }}&nbsp;{{ dissolutionDateTime }}</strong>.
Expand Down

0 comments on commit 9a3ea01

Please sign in to comment.