When exiting the dashboard, if the dashboard is in edition mode, ask "do you want to leave"
Or maybe ask "do you want to leave?", as expect in the house edition page.
Good idea that's maybe better!
Linked to #585 (on ask before component). But that's not really easy to do with Preact. If someone has any idea.
Indeed, just had a look and it's not that easy with preact-router...
Maybe thanks to the handleRoute function :
https://github.com/GladysAssistant/Gladys/blob/master/front/src/actions/main.js#L25
We could watch the currentUrl and if it changes, try to keep the currentUrl if the state is not saved + display a modal ?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Should check on new preact version if "leave page" behavior is implemented.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale. I need to check preact upgrade to see if it is nativly managed for now.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still looking for solution...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.