feat: editor save conflict localization

This commit is contained in:
NGPixel committed 2020-03-22 18:58:27 -04:00
1 parent 4b0e3d1c43
commit 507928730a
6 files changed
+180 -23

No files matched your search

+8
View File
@@ -245,6 +245,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')