OpenChartProject / OpenChart

✨ NEW REPO ✨ https://github.com/OpenChartProject/OpenChart-web
https://github.com/OpenChartProject/OpenChart-web
Other
8 stars 3 forks source link

Update UI to show if there are unsaved changes. #76

Open Kangaroux opened 4 years ago

Kangaroux commented 4 years ago

📖 Overview

A project has unsaved changes if:

  1. The project is not yet saved to the disk.
  2. OR There are pending changes to the project.
  3. OR There are pending changes to any charts within the project.

A chart has unsaved changes if:

  1. The chart has not yet been saved to the disk.
  2. OR The chart's undo stack is non-empty
  3. AND The item at the top of the undo stack is not the same item since the last save