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

Warning when user dismisses drawer with unsaved changes to route #353

Open
medienbaecker opened this issue Apr 26, 2024 · 2 comments
Open
Labels
enhancement ☁️ This could be better help needed 🙌 Can't do it myself

Comments

@medienbaecker
Copy link
Contributor

Closing/dismissing/saving the drawer feels fundamentally different compared to the structure/object/block fields.

Here, I have to click the little ✅ icon in the top right to save the route. I often close the drawer after adding all the necessary information for a new route, only to have everything dismissed without warning.

Would it be easily possible to add a confirmation of some sorts when users make changes to a route or create a route and close the drawer without saving?

@distantnative distantnative changed the title UX when closing drawer, unexpected? Warning when user dismisses drawer with unsaved changes to route Apr 26, 2024
@distantnative
Copy link
Owner

Not sure if the drawers allow to add that functionality. I'll give it a try sometime soon.

@distantnative distantnative added the enhancement ☁️ This could be better label Apr 26, 2024
@distantnative
Copy link
Owner

@medienbaecker Can't really do anything about it. The drawer is defined on the backend and there is no event or so I can hook into Kirby's drawer to prevent it from just closing.

@distantnative distantnative added the help needed 🙌 Can't do it myself label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ☁️ This could be better help needed 🙌 Can't do it myself
Projects
None yet
Development

No branches or pull requests

2 participants