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

[jk] Cancel unsaved modified file dialogue #4975

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

johnson-mage
Copy link
Member

@johnson-mage johnson-mage commented Apr 23, 2024

Description

  • When clicking Cancel in the confirmation dialogue for closing an unsaved, modified file in the File Editor, user would expect the unsaved file to remain open so they could save it, but the file was closing instead, causing unsaved changes to be lost. This PR fixes this so that clicking Cancel behaves as expected.
  • Addresses github issue [BUG] cannot cancel closing unsaved modified file #4882
  • Also fix blocked "Close" button tooltip in file tab.

How Has This Been Tested?

Before (clicking cancel closes the file without allowing user to save changes):
before - close unsaved file

After (clicking cancel keeps the file open as expected):
after - close unsaved file

Checklist

  • The PR is tagged with proper labels (bug, enhancement, feature, documentation)
  • I have performed a self-review of my own code
  • I have added unit tests that prove my fix is effective or that my feature works
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

@johnson-mage johnson-mage added the bug Something isn't working label Apr 23, 2024
@johnson-mage johnson-mage self-assigned this Apr 23, 2024
@johnson-mage johnson-mage merged commit 4e77ea9 into master Apr 23, 2024
11 checks passed
@johnson-mage johnson-mage deleted the jk--close_unsaved_modified_file branch April 23, 2024 02:53
oonyoontong pushed a commit to bunker-tech/mage-ai that referenced this pull request May 2, 2024
* [jk] Fix hidden tooltip

* [jk] Do not close unsaved file with changes when canceling dialogue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant