generated from bcgov/bcrs-template-ui
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- updated some shared imports - added amalgamation as supported filing type - added amalgamation template to Filing History List - added amalgamation application to Todo List - added amalgamation sub-types to enum - added amalgamation to API Filing interface - added amalgamation to Task Todo interface - added an enum mixin method - added enum utilities methods - updated filingTypeToName()
- Loading branch information
1 parent
c9fda7c
commit d3694ba
Showing
13 changed files
with
320 additions
and
62 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
133 changes: 133 additions & 0 deletions
133
src/components/Dashboard/FilingHistoryList/filings/AmalgamationFiling.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<template> | ||
<FilingTemplate | ||
class="amalgamation-filing" | ||
:filing="filing" | ||
:index="index" | ||
> | ||
<template #subtitle> | ||
<FiledAndPendingPaid | ||
v-if="isFutureEffectivePending" | ||
class="item-header-subtitle" | ||
:filing="filing" | ||
:index="index" | ||
/> | ||
|
||
<FutureEffectivePaid | ||
v-else-if="isFutureEffective" | ||
class="item-header-subtitle" | ||
:filing="filing" | ||
:index="index" | ||
/> | ||
</template> | ||
|
||
<template #body> | ||
<FutureEffectivePending | ||
v-if="isFutureEffectivePending" | ||
:filing="filing" | ||
/> | ||
|
||
<FutureEffective | ||
v-else-if="isFutureEffective" | ||
:filing="filing" | ||
/> | ||
|
||
<div | ||
v-else-if="isStatusCompleted" | ||
class="completed-ia-details" | ||
> | ||
<h4>Amalgamation Complete</h4> | ||
|
||
<!-- *** TODO: ask Yui what this should look like --> | ||
<!-- <p> | ||
{{ getLegalName || 'A Numbered Benefit Company' }} has been successfully incorporated. | ||
</p> --> | ||
|
||
<p> | ||
Return to My Business Registry to access your business and file changes. | ||
</p> | ||
|
||
<div class="to-dashboard-container text-center mt-6"> | ||
<v-btn | ||
color="primary" | ||
@click.stop="returnToMyBusinessRegistry()" | ||
> | ||
<span>Return to My Business Registry</span> | ||
</v-btn> | ||
</div> | ||
</div> | ||
</template> | ||
</FilingTemplate> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Prop, Vue } from 'vue-property-decorator' | ||
import { Getter } from 'pinia-class' | ||
import { ApiFilingIF } from '@/interfaces' | ||
import { DateUtilities, EnumUtilities } from '@/services' | ||
import { navigate } from '@/utils' | ||
import FiledAndPendingPaid from '../subtitles/FiledAndPendingPaid.vue' | ||
import FilingTemplate from '../FilingTemplate.vue' | ||
import FutureEffective from '../bodies/FutureEffective.vue' | ||
import FutureEffectivePaid from '../subtitles/FutureEffectivePaid.vue' | ||
import FutureEffectivePending from '../bodies/FutureEffectivePending.vue' | ||
import { useBusinessStore, useConfigurationStore } from '@/stores' | ||
@Component({ | ||
components: { | ||
FiledAndPendingPaid, | ||
FilingTemplate, | ||
FutureEffective, | ||
FutureEffectivePaid, | ||
FutureEffectivePending | ||
} | ||
}) | ||
export default class AmalgamationFiling extends Vue { | ||
@Prop({ required: true }) readonly filing!: ApiFilingIF | ||
@Prop({ required: true }) readonly index!: number | ||
@Getter(useBusinessStore) getLegalName!: string | ||
@Getter(useConfigurationStore) getMyBusinessRegistryUrl!: string | ||
/** Whether this filing is in Complete status. */ | ||
get isStatusCompleted (): boolean { | ||
return EnumUtilities.isStatusCompleted(this.filing) | ||
} | ||
/** Whether this filing is Future Effective Pending (overdue). */ | ||
get isFutureEffectivePending (): boolean { | ||
return ( | ||
EnumUtilities.isStatusPaid(this.filing) && | ||
this.filing.isFutureEffective && | ||
DateUtilities.isDatePast(this.filing.effectiveDate) | ||
) | ||
} | ||
/** Whether this filing is Future Effective (not yet completed). */ | ||
get isFutureEffective (): boolean { | ||
return ( | ||
EnumUtilities.isStatusPaid(this.filing) && | ||
this.filing.isFutureEffective && | ||
DateUtilities.isDateFuture(this.filing.effectiveDate) | ||
) | ||
} | ||
returnToMyBusinessRegistry (): void { | ||
navigate(this.getMyBusinessRegistryUrl) | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import "@/assets/styles/theme.scss"; | ||
.item-header-subtitle { | ||
color: $gray7; | ||
margin-top: 0.5rem; | ||
} | ||
p { | ||
color: $gray7; | ||
font-size: $px-15; | ||
margin-top: 1rem !important; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.