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.
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