Skip to content

Commit

Permalink
25579 - Remove Save/Resume Button for NoW filing (#715)
Browse files Browse the repository at this point in the history
* show warning when there are changes and click cancel

Signed-off-by: Qin <Arwen.Qin@gov.bc.ca>

* remove unneeded save draft, load draft

Signed-off-by: Qin <Arwen.Qin@gov.bc.ca>

* adjust buttons

Signed-off-by: Qin <Arwen.Qin@gov.bc.ca>

* update package

Signed-off-by: Qin <Arwen.Qin@gov.bc.ca>

* add filing id

Signed-off-by: Qin <Arwen.Qin@gov.bc.ca>

---------

Signed-off-by: Qin <Arwen.Qin@gov.bc.ca>
  • Loading branch information
ArwenQin authored Jan 31, 2025
1 parent 0a43154 commit 3608c70
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 263 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "business-filings-ui",
"version": "7.4.15",
"version": "7.4.16",
"private": true,
"appName": "Filings UI",
"sbcName": "SBC Common Components",
Expand Down
13 changes: 0 additions & 13 deletions src/components/NoticeOfWithdrawal/RecordToBeWithdrawn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,25 +168,12 @@ import { useFilingHistoryListStore } from '@/stores/filingHistoryListStore'
export default class RecordToBeWithdrawn extends Mixins(DateMixin) {
@Prop({ required: true }) readonly filingToBeWithdrawn!: string
/** Draft part of a POA (plan of arrangement). */
@Prop({ default: false }) readonly hasDraftPartOfPoa!: boolean
/** Draft has taken effect. */
@Prop({ default: false }) readonly hasDraftTakenEffect!: boolean
@Getter(useFilingHistoryListStore) getFilings!: Array<ApiFilingIF>
// Local properties
private partOfPoa = false
private hasTakenEffect = false
/** Called when component is mounted. */
mounted (): void {
// Set default draft values if they exist
if (this.hasDraftPartOfPoa) this.partOfPoa = this.hasDraftPartOfPoa
if (this.hasDraftTakenEffect) this.hasTakenEffect = this.hasDraftTakenEffect
}
getFilingToBeWithdrawn (): ApiFilingIF | null {
const filingId = Number(this.filingToBeWithdrawn)
const filings = this.getFilings as ApiFilingIF[]
Expand Down
Loading

0 comments on commit 3608c70

Please sign in to comment.