Commit 83f01d4d authored by christianrhansen's avatar christianrhansen

caching new cell for mobile

parent 8656ce5b
......@@ -23,7 +23,7 @@
@input="value => {handleItemChanged(value, item)}",
@change="value => {handleItemChanged(value, item)}")
.mobile-only.text-center(v-if="item.value")
q-btn.bg-primary.text-white.q-mr-sm(@click="", flat, round)
q-btn.bg-primary.text-white.q-mr-sm(@click="cacheNewCell(item)", flat, round)
q-icon(name="check")
q-btn.bg-dark.text-white(@click="item.value = undefined", flat, round)
q-icon(name="clear")
......@@ -112,6 +112,9 @@
}
},
methods: {
cacheNewCell (item) {
this.$store.commit('mosys/setNewCell', item)
},
typeToIconName (type) {
let iconName = typeToIconName[type.toLowerCase()]
if (!iconName) {
......
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