-
Notifications
You must be signed in to change notification settings - Fork 12
Feature/634 659 prevent changing work status back prevent post publication deletion #663
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
Feature/634 659 prevent changing work status back prevent post publication deletion #663
Conversation
ja573
left a comment
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.
Okay, so it looks like the modal component is not just a modal, but it's the work form's save button and the confirmation modal.
The work form has a callback on submit (UpdataWork). You need to modify that callback so that if the modal is not required the callback is UpdateWork, but if it is required it should open the modal instead.
Then you can make use of the callback in the modal to update the work.
graph TD;
subgraph Work Form
A[User Submits Work Form] -->|Needs Confirmation?| B{Check Confirmation}
B -- No --> C[Call UpdateWork Directly]
B -- Yes --> D[Open Confirmation Modal]
end
subgraph Confirmation Modal
D --> E[User Confirms]
E --> F[Call UpdateWork from Modal]
end
…presses Cancel in modal
… parent component to close modal
…tus_back_prevent_post_publication_deletion Merge with develop
No description provided.