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

Ability to clear "modified" state of a detail view #3940

Open
knstvk opened this issue Nov 27, 2024 · 0 comments
Open

Ability to clear "modified" state of a detail view #3940

knstvk opened this issue Nov 27, 2024 · 0 comments

Comments

@knstvk
Copy link
Contributor

knstvk commented Nov 27, 2024

On the detail view screen, there is an action that calls a Spring component where the entity is passed and modified. The data context listeners are triggered, and its state is changed to modified. Accordingly, if the user tries to close the screen, a dialog box saying "there are unsaved changes" will appear. If dataContext.evictModified() is called, it is expected that the dialog box will not appear anymore and the screen will close. However, there is a flag StandardDetailView#modifiedAfterOpen on the screen that is changed precisely because the listener in the data context was triggered, and it is not possible to change this flag.

@knstvk knstvk added triage Issue is waiting for triage in: flowui labels Nov 27, 2024
@glebfox glebfox added size: S and removed triage Issue is waiting for triage labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants