Commit b890ec4a authored by christianrhansen's avatar christianrhansen

mosys mobile: new cell header: close-button styling & functionality

parent f715aa5b
...@@ -23,9 +23,14 @@ ...@@ -23,9 +23,14 @@
q-item-main q-item-main
strong New {{ newCellType }} strong New {{ newCellType }}
q-item-side q-item-side
//
q-btn.bg-transparent.text-white.on-right(@click.native="clearCachedCell()", round, flat) q-btn.bg-transparent.text-white.on-right(@click.native="clearCachedCell()", round, flat)
q-icon(name="clear") q-icon(name="clear")
q-btn.text-white.q-px-md.q-mr-md.on-right(@click="clearHandler('cached cell')", flat,
style="border-radius: .5rem; width: 42px; border: 1px solid rgba(255, 255, 255, .3);")
q-icon(name="clear")
// -------------------------------------------------------------------------------------------- selected cell header // -------------------------------------------------------------------------------------------- selected cell header
#selected-cell-header.fixed-top.z-top.bg-dark.text-white.transition(:class="{'show': showEditingCells}") #selected-cell-header.fixed-top.z-top.bg-dark.text-white.transition(:class="{'show': showEditingCells}")
q-item.q-pl-md.q-pr-none.q-py-none.full-height(v-if="!modal") q-item.q-pl-md.q-pr-none.q-py-none.full-height(v-if="!modal")
...@@ -488,6 +493,10 @@ ...@@ -488,6 +493,10 @@
}) })
this.$store.commit('mosys/setEditingCells', '') this.$store.commit('mosys/setEditingCells', '')
break break
case 'cached cell':
this.$store.commit('mosys/cacheNewCell', undefined)
this.clearTempCell()
break
} }
}, },
intersectionChanged (obj) { intersectionChanged (obj) {
...@@ -596,10 +605,12 @@ ...@@ -596,10 +605,12 @@
this.cellHandler.resize.y = this.gridDimensions.full.cell.height * res.y - 8 - 20 this.cellHandler.resize.y = this.gridDimensions.full.cell.height * res.y - 8 - 20
} }
}, },
/*
clearCachedCell () { clearCachedCell () {
this.$store.commit('mosys/cacheNewCell', undefined) this.$store.commit('mosys/cacheNewCell', undefined)
this.clearTempCell() this.clearTempCell()
}, },
*/
handleCellInfoTouch (event, annotation) { handleCellInfoTouch (event, annotation) {
console.log('handleCellInfoTouch', annotation) console.log('handleCellInfoTouch', annotation)
this.touchMobileCell(event, annotation) this.touchMobileCell(event, annotation)
......
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