Commit deafdce8 authored by christianrhansen's avatar christianrhansen

mosys mobile: dynamic "new cell header" label

parent 584eff31
Pipeline #19901 passed with stage
in 1 minute and 25 seconds
......@@ -26,7 +26,7 @@
#new-cell-header.fixed-top.z-top.bg-dark.text-white.transition(:class="{'show': cachedNewCell}")
q-item.q-pl-md.q-pr-xs.q-py-none.full-height
q-item-main
| Place new cell
| New {{ newCellType }}
q-item-side
//
q-btn.bg-transparent.text-white.on-right(@click.native="clearTempCell()", round, flat,
......@@ -367,6 +367,12 @@
scrollPositionCache: 'mosys/getScrollPositionCache',
editMode: 'mosys/getEditMode'
}),
newCellType () {
if (this.cachedNewCell) {
let type = this.cachedNewCell.component
return type.substr(4, type.length - 4)
}
},
cellContextMenuActions () {
const actions = {
delete: {
......
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