-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
20929 - Update the involuntary dissolution job via PUT call #2829
20929 - Update the involuntary dissolution job via PUT call #2829
Conversation
v-if="isSaving" | ||
class="loading-container" | ||
> | ||
<v-progress-circular |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to prevent the user from spamming the Save button 😆 Basically the component will be replaced by a spinner until the PUT call is done. Logic is below.
state.numberOfBusinessesNonEdit = state.numberOfBusinessesEdit | ||
state.isSaving = true // show the spinner | ||
// Update store configurations array with the new number of inputted batch size | ||
staffStore.involuntaryDissolutionConfigurations.configurations.find((config, index) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is cleanest way I could think of. Basically finding where the NUM_DISSOLUTIONS_ALLOWED
is and changing it's value.
/gcbrun |
Temporary Url for review: https://bcregistry-account-dev--pr-2829-wz03rzyl.web.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
state.isSaving = true // show the spinner | ||
// Update store configurations array with the new number of inputted batch size | ||
staffStore.involuntaryDissolutionConfigurations.configurations.find((config, index) => { | ||
if (config.name === 'NUM_DISSOLUTIONS_ALLOWED') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ENUM?
|
Issue #:
bcgov/entity#20929
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-auth license (Apache 2.0).