Astroid-Framework icon indicating copy to clipboard operation
Astroid-Framework copied to clipboard

unsaved changes - warn the user

Open shoulders opened this issue 5 years ago • 3 comments

when editing the template sometimes users can exit without saving.

When you currently exit the 'template options' there is no warning to say there are unsaved changes. Can this be added?

Reason: some people might edit their whole template in one setting or completely redue the layout and then click the wrong button loosing all their work.

shoulders avatar Jul 10 '19 15:07 shoulders

I completely agree... Currently there is a Javascript alert that comes up if you try to close the window without savings. Let me see if we can do something similar where it's upon clicking the exit button too and also have some sort of indicator at the save button that shows that there are pending changes to be saved.

Thanks, Chetan

chetanmadaan avatar Jul 10 '19 15:07 chetanmadaan

The problem seems to be that the Layout Manager changes aren't considered unsaved. So you can even close the window and it won't prompt you for saving the changes.

Any other changes work fine on closing the window and trying to click the close button as well.

chetanmadaan avatar Jul 10 '19 15:07 chetanmadaan

I can confirm that you are right. It is in the layout editor changes are not considered. perhaps

shoulders avatar Jul 10 '19 15:07 shoulders