feat: save conflict resolution

This commit is contained in:
NGPixel committed 2020-03-21 19:18:08 -04:00
1 parent bacbe4f543
commit 4b0e3d1c43
12 files changed
+400 -31

No files matched your search

@@ -633,6 +633,14 @@ export default {
break
}
})
// Handle save conflict
this.$root.$on('saveConflict', () => {
this.toggleModal(`editorModalConflict`)
})
this.$root.$on('overwriteEditorContent', () => {
this.cm.setValue(this.$store.get('editor/content'))
})
},
beforeDestroy() {
this.$root.$off('editorInsert')