Skip to content
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

Fix: create/edit resource tab Save & Close button behavior #7124

Merged
merged 6 commits into from Feb 13, 2023

Conversation

aleksfront
Copy link
Contributor

Currently Save & Close button doesn't respect result of save function. It closes tab even if error occurred.

save and close button

This PR adds following rules for Save & Close:

  • Create resource tab closes only when all resources are successfully created
  • Edit resource tab closes if no error happed during save.
editing.resource.mov
create.multiple.resources.mov

Fixes #6785

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
@aleksfront aleksfront added bug Something isn't working area/dock labels Feb 8, 2023
@aleksfront aleksfront added this to the 6.4.1 milestone Feb 8, 2023
@aleksfront aleksfront requested a review from a team as a code owner February 8, 2023 11:12
@aleksfront aleksfront requested review from jansav, Iku-turso and jim-docker and removed request for a team February 8, 2023 11:12
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
@aleksfront aleksfront merged commit c9d43ff into master Feb 13, 2023
@aleksfront aleksfront deleted the fix-edit-resource-not-close-tab-on-error branch February 13, 2023 13:52
@Nokel81 Nokel81 modified the milestones: 6.4.1, 6.5.0 Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dock bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Save & Close should wait the result before closing the tab
3 participants