Commit f715aa5b authored by christianrhansen's avatar christianrhansen

mosys mobile: "close selected cell header"-handler functionality

parent 6491beac
Pipeline #19992 passed with stage
in 1 minute and 23 seconds
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
flat) flat)
q-icon(name="delete") q-icon(name="delete")
q-btn.text-white.q-px-md.q-mr-md.on-right(@click="", flat, q-btn.text-white.q-px-md.q-mr-md.on-right(@click="clearHandler('cell')", flat,
style="border-radius: .5rem; width: 42px; border: 1px solid rgba(255, 255, 255, .3);") style="border-radius: .5rem; width: 42px; border: 1px solid rgba(255, 255, 255, .3);")
q-icon(name="clear") q-icon(name="clear")
...@@ -480,6 +480,16 @@ ...@@ -480,6 +480,16 @@
} }
}, },
methods: { methods: {
clearHandler (target) {
switch (target) {
case 'cell':
Object.keys(this.annotationUIStates).filter((k) => {
this.annotationUIStates[k].editing = false
})
this.$store.commit('mosys/setEditingCells', '')
break
}
},
intersectionChanged (obj) { intersectionChanged (obj) {
let _offsetLeft = Math.sign(obj.offsetLeft) let _offsetLeft = Math.sign(obj.offsetLeft)
......
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