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

Dirty form notifications #69

Open
tdashworth opened this issue Aug 4, 2022 · 0 comments
Open

Dirty form notifications #69

tdashworth opened this issue Aug 4, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@tdashworth
Copy link
Contributor

Is your feature request related to a problem? Please describe.
It would be nice to receive a notification when loading a file/closing the tab if there are dirty (unsaved changes) on either of the three pages.

Describe the solution you'd like
Give I am a user of the plugin
And I have opened the schema/export/import page
And I make a change from the default config
When I close which page/close plugin/load a file
Then a yes/no message will open warning to lose of changes and if I want to continue

Give I am a user of the plugin
And I have opened the schema/export/import page
And I load a file
And make a change to the config
When I close which page/close plugin/load a file
Then a yes/no message will open warning to lose of changes and if I want to continue

Give I am a user of the plugin
And I have opened the schema/export/import page
And I optional load a file
And I make a change to the config
And I click save
When I close which page/close plugin/load a file
Then there will be no message and the action continues

Basically the form is not dirty when first opened, file loaded, or file saved. Any other change should make it dirty.

Something to consider would be unsaveable fields like data type or environment. Since these would be lost when closing anyway, they shouldn't make the form dirty.

@tdashworth tdashworth added the enhancement New feature or request label Aug 4, 2022
@tdashworth tdashworth self-assigned this Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant