diff --git a/web/src/pages/map/editor.vue b/web/src/pages/map/editor.vue index 2fb90e98..a2c507f6 100644 --- a/web/src/pages/map/editor.vue +++ b/web/src/pages/map/editor.vue @@ -150,6 +150,12 @@ export default Vue.extend({ edition_stack(): void { ExternalVueAppEvent.$emit('editor-count', this.edition_stack.length) }, + + status(): void { + if (!this.status) { + this.$emit('close') + } + }, }, beforeMount(): void { diff --git a/web/src/pages/map/index.vue b/web/src/pages/map/index.vue index d9eb0008..0f242459 100644 --- a/web/src/pages/map/index.vue +++ b/web/src/pages/map/index.vue @@ -70,6 +70,7 @@ :user="user" :issue="editor" @issue-done="markerLayer.corrected()" + @close="$refs.editor.hide()" />