forked from bcgov/business-filings-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18274 Updated To Do List and Recent Filing History (bcgov#584)
* - app version = 7.0.12 * - added AGM Extension as a filing in Filing History List - added AGM Extension as cancellable Todo Item - added AGM Extension filing component - fixed wrong enum in Entity Menu - added AGM Extension to Enum Utilities - fixed misc type warnings * - added agmExtension fields to ApiFilingIF - updated AGM Extension filing JSON per schema * - fixed unit test * - added FHL unit tests
- Loading branch information
1 parent
88a37fc
commit 0c85638
Showing
15 changed files
with
247 additions
and
21 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
57 changes: 57 additions & 0 deletions
57
src/components/Dashboard/FilingHistoryList/filings/AgmExtension.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,57 @@ | ||
<template> | ||
<FilingTemplate | ||
class="agm-extension" | ||
:filing="filing" | ||
:index="index" | ||
> | ||
<template #body> | ||
<div v-if="isFilingComplete"> | ||
<p class="mt-4"> | ||
The {{ agmYear }} AGM must be held by <strong>{{ agmDueDate }}</strong>. | ||
</p> | ||
</div> | ||
</template> | ||
</FilingTemplate> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Prop, Vue } from 'vue-property-decorator' | ||
import { ApiFilingIF } from '@/interfaces' | ||
import FilingTemplate from '../FilingTemplate.vue' | ||
import { DateUtilities, EnumUtilities } from '@/services' | ||
@Component({ | ||
components: { FilingTemplate } | ||
}) | ||
export default class ConsentContinuationOut extends Vue { | ||
@Prop({ required: true }) readonly filing!: ApiFilingIF | ||
@Prop({ required: true }) readonly index!: number | ||
/** Whether the filing is complete. */ | ||
get isFilingComplete (): boolean { | ||
return EnumUtilities.isStatusCompleted(this.filing) | ||
} | ||
get agmYear (): string { | ||
return this.filing.data?.agmExtension?.year || '[unknown]' | ||
} | ||
get agmDueDate (): string { | ||
const yyyyMmDd = this.filing.data?.agmExtension?.expireDateApprovedExt | ||
const date = DateUtilities.yyyyMmDdToDate(yyyyMmDd) | ||
const pacificDate = DateUtilities.dateToPacificDate(date, true) | ||
if (pacificDate) return `${pacificDate} at 11:59 pm Pacific time` | ||
return '[unknown]' | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import "@/assets/styles/theme.scss"; | ||
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
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
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
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
Oops, something went wrong.