Skip to content

Commit

Permalink
19024 - Fixed involuntary dissolution text field value (#2813)
Browse files Browse the repository at this point in the history
  • Loading branch information
JazzarKarim authored May 9, 2024
1 parent 831d38a commit 246bb7c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions auth-web/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 auth-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-web",
"version": "2.6.7",
"version": "2.6.8",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
12 changes: 11 additions & 1 deletion auth-web/src/components/auth/staff/DissolutionSchedule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
large
outlined
class="mr-3"
@click="triggerEditOnOff()"
@click="cancelBtnClicked()"
>
Cancel
</v-btn>
Expand Down Expand Up @@ -142,6 +142,15 @@ export default defineComponent({
state.menu = false
}
/**
* Cancel button clicked.
* Revert numberOfBusinesses to store value. Hide the edit components.
*/
const cancelBtnClicked = (): void => {
state.numberOfBusinesses = staffStore.getDissolutionBatchSize()
triggerEditOnOff()
}
/**
* Save button is clicked. Update the dissolution batch size.
* Only save if the inputted number is valid.
Expand Down Expand Up @@ -181,6 +190,7 @@ export default defineComponent({
...toRefs(state),
actionBtnClicked,
actionBtnText,
cancelBtnClicked,
dissolutionBatchSizeRules,
triggerEditOnOff,
saveBtnClicked,
Expand Down

0 comments on commit 246bb7c

Please sign in to comment.