52North / smle

The friendly SensorML Editor ☺
http://52north.github.io/smle/master/
Other
17 stars 20 forks source link

Different Behaviour when clicking repeatetly on "New" and "Create from Template" menu #35

Open cDanowski opened 8 years ago

cDanowski commented 8 years ago

I experience different behaviour when clicking multiple times on the menu buttons.

E.g. when editing a new SensorML document using "Create from template menu" (click on menu, choose template, start editing properties not matter the hierarchy level) and then re-hit the "Create from Template" button the system discards the editing document and goes back to the inital view of the menu, where I can choose the template.

When I do the same using the "New" menu (hit "New", start editing a new SensorML instance), and then re-hit "New", nothing happens. I just remain in the edit view of the created SensorML document.

This behaviour is inconsistent. At least both menu buttons should have the same behaviour. I suggest to change the behaviour of the "New" button. From my POV it should discard all current edits and provide the user with the option to create a whole new document.

An optional improvement of both button behaviour would be to first ask uses whether they are really sure to discard the current document while editing. Otherwise an accidental hit on any of these buttons (actually, here all buttons could be imrpoved inclduing "View/Edit" and "Delete") will cause a loss of all performed steps creating/editing a SensorML document.