Hardocs / desktop-app

Hardocs desktop app presenting current docs editing functionalities.
GNU General Public License v2.0
3 stars 2 forks source link

Handle cancelling in docs #35

Open jurra opened 3 years ago

jurra commented 3 years ago

Story

When changing a document the user might want to go back to the previous state or cancel the changes. In this case the original document that hasnt been modified should be reloaded.

Problems

How to store the old version to discard and select from the new version Currently the store is updated on the fly. One of the reasons to do this is because the use might change documents without saving. The approach is to not allow users to change docs unless they save. The behavior in this case would be similar to open and closing documents.

Solution

On cancel pull back content from the vuex store

create-issue-branch[bot] commented 3 years ago

Branch issue-35-Handle_cancelling_in_docs created!