Gladys icon indicating copy to clipboard operation
Gladys copied to clipboard

When exiting the dashboard, if the dashboard is in edition mode, ask "do you want to leave"

Open Pierre-Gilles opened this issue 5 years ago • 14 comments

Pierre-Gilles avatar May 14 '20 18:05 Pierre-Gilles

Or maybe ask "do you want to leave?", as expect in the house edition page.

atrovato avatar May 14 '20 19:05 atrovato

Good idea that's maybe better!

Pierre-Gilles avatar May 18 '20 08:05 Pierre-Gilles

Linked to #585 (on ask before component). But that's not really easy to do with Preact. If someone has any idea.

atrovato avatar May 23 '20 05:05 atrovato

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 ?

Pierre-Gilles avatar May 25 '20 09:05 Pierre-Gilles

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.

stale[bot] avatar Oct 18 '21 06:10 stale[bot]

Should check on new preact version if "leave page" behavior is implemented.

atrovato avatar Oct 18 '21 19:10 atrovato

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.

stale[bot] avatar Dec 17 '21 21:12 stale[bot]

Not stale.

atrovato avatar Dec 19 '21 08:12 atrovato

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.

stale[bot] avatar Feb 17 '22 09:02 stale[bot]

Not stale. I need to check preact upgrade to see if it is nativly managed for now.

atrovato avatar Feb 21 '22 19:02 atrovato

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.

stale[bot] avatar Apr 22 '22 19:04 stale[bot]

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.

stale[bot] avatar Jun 22 '22 11:06 stale[bot]

Still looking for solution...

atrovato avatar Jun 25 '22 07:06 atrovato

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.

stale[bot] avatar Aug 30 '22 23:08 stale[bot]

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.

stale[bot] avatar Nov 25 '22 19:11 stale[bot]