...
 
......@@ -142,7 +142,8 @@
isMobile: 'globalSettings/getIsMobile',
// editingCells: 'mosys/getEditingCells'
showEditingCells: 'mosys/getShowEditingCells',
scrollPositionCache: 'mosys/getScrollPositionCache'
scrollPositionCache: 'mosys/getScrollPositionCache',
editMode: 'mosys/getEditMode'
}),
cellContextMenuActions () {
const actions = {
......
......@@ -3,23 +3,23 @@
q-tabs.grid-editor-sources-tabs.bg-white.fixed-top.shadow-11(v-model="selectedTab", color="dark", align="justify",
hide-underline, style="z-index: 10000000;")
q-tab.q-pa-none.bg-dark.text-white(slot="title", name="tab-editing-cells")
q-tab.q-pa-none.bg-dark.text-white(slot="title", name="tab-editing-cell")
| {{ $t('routes.mosys.cells.edit_cell') }}
q-tab.q-pa-none.bg-dark.text-white(slot="title", name="tab-move-cells")
q-tab.q-pa-none.bg-dark.text-white(slot="title", name="tab-move-cell")
| {{ $t('routes.mosys.cells.move_cell') }}
q-tab.q-pa-none.bg-dark.text-white(slot="title", name="tab-resize-cells")
q-tab.q-pa-none.bg-dark.text-white(slot="title", name="tab-resize-cell")
| {{ $t('routes.mosys.cells.resize_cell') }}
q-tab.q-pa-none.bg-dark.text-white(slot="title", name="tab-delete-cells")
q-tab.q-pa-none.bg-dark.text-white(slot="title", name="tab-delete-cell")
| {{ $t('routes.mosys.cells.delete_cell') }}
q-tab.q-pa-none.bg-dark.text-white(slot="title", name="tab-done", icon="check", @click="handleCloseTabs()")
q-tab.q-pa-none.bg-positive.text-white(slot="title", name="tab-done", icon="check", @click="handleCloseTabs()")
q-tab-pane(name="tab-editing-cells")
template(v-if="showEditingCells")
cell-editor(:cells="editingCells")
cell-editor(:cells="editingCells", style="max-height: 50vh;")
</template>
......@@ -42,14 +42,31 @@
...mapGetters({
user: 'auth/getUserState',
editingCells: 'mosys/getEditingCells',
showEditingCells: 'mosys/getShowEditingCells'
showEditingCells: 'mosys/getShowEditingCells',
// selectedCells: 'mosys/getSelectedCells'
editMode: 'mosys/getEditMode'
}),
userHasDocuments () {
return userHasFeature(this.user, 'documents')
}
},
watch: {
selectedTab (val) {
switch (val) {
case 'tab-editing-cell':
this.$store.commit('mosys/setEditMode', 'edit')
break
case 'tab-move-cell':
this.$store.commit('mosys/setEditMode', 'move')
break
case 'tab-resize-cell':
this.$store.commit('mosys/setEditMode', 'resize')
break
case 'tab-delete-cell':
this.$store.commit('mosys/setEditMode', 'delete')
break
}
}
},
mounted () {
},
......