mdenet / educationplatform

Eclipse Public License 2.0
2 stars 3 forks source link

Visual feedback when there are saveable changes #150

Open barnettwilliam opened 8 months ago

barnettwilliam commented 8 months ago

The save button should be disabled and the icon greyed out when all panels are in a clean state i.e. there are no modifications to the panels contents to save, it should be enabled when a panel is in a dirty state - as suggested https://github.com/mdenet/educationplatform/pull/148#pullrequestreview-1774921175

szschaler commented 8 months ago

I think this may actually be tricky with ACE, as it doesn't seem to expose an easy event for this. We can use editor-level change events to enable undo buttons, but the undo manager doesn't expose any events on reset or mark clean...