Commit 8bdf8ed2 authored by Anton Koch's avatar Anton Koch

Merge branch '404-add-empty-cell-editor-notification---mosys' into 'release_2_0'

closing cell-editor after deleting cell (#404)

See merge request !47
parents 5857f00a a2ef9c6b
Pipeline #55178 passed with stage
in 18 minutes and 30 seconds
......@@ -340,6 +340,7 @@
computed: {
...mapGetters({
// showEditingCells: 'mosys/getShowEditingCells'
storeEditingCells: 'mosys/getEditingCells',
annotations: 'mosys/getEditingCells'
})
},
......
......@@ -50,8 +50,7 @@
q-btn.text-grey-4(@click="clearHandler('selected cell')", flat)
q-icon(name="clear")
// -----------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------------------ grid
// ----------------------------------------------------------------------------------------------------- cell editor
// modal for existing cell editing
q-modal.z-max(v-model="modal", minimized, content-css="border-radius: .35rem!important; border: 1px solid rgba(255,255,255,0.25); background-color: black;")
cell-editor.bg-dark(@closePanel="closePanelHandler", @removeCell="removeCellHandler")
......@@ -964,6 +963,7 @@
this.annotationUIStates[annotation._uuid].selected = false
this.updateSelectedCells()
this.updateEditingCells()
this.$store.commit('mosys/setEditingCells', '')
await this.$store.dispatch('cells/delete', annotation.body.source.id)
await this.$store.dispatch('annotations/delete', annotation.id)
this.data.annotations = this.data.annotations.filter(a => a.id !== annotation.id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment