Commit fa36beab authored by Anton's avatar Anton

Refactor: rename mosysGridEditorStore to mosys

parent 287b4434
......@@ -63,7 +63,7 @@
@dragexit="event => {handleGridResizerDragEnd(event)}")
q-icon(name="network cell")
div.fixed-top-right(style="right:18px; top:68px", v-if="!$store.state.mosysGridEditorStore.showSources")
div.fixed-top-right(style="right:18px; top:68px", v-if="!$store.state.mosys.showSources")
q-btn(round, color="primary", small, @click="handleGridButtonClickEdit", style="margin-right: 0.5em")
q-icon(name="add")
q-btn(round, color="primary", small, @click="$router.push(`/mosys/grids/${$route.params.id}`)")
......@@ -215,8 +215,8 @@
// handleCellContextMenuClick () {
// },
// handleCellContextMenuEdit (/* event, cell */) {
// // this.$store.commit('mosysGridEditorStore/showSources')
// // this.$store.commit('mosysGridEditorStore/setSourcesTab', 'tab-default-cells')
// // this.$store.commit('mosys/showSources')
// // this.$store.commit('mosys/setSourcesTab', 'tab-default-cells')
// },
async handleCellContextMenuDelete (event, cell) {
this.cellUIStates[cell.uuid].selected = false
......@@ -364,7 +364,7 @@
await this.updateGridMetadataStore()
},
handleGridButtonClickEdit () {
this.$store.commit('mosysGridEditorStore/toggleSources')
this.$store.commit('mosys/toggleSources')
},
updateSelectedCells () {
const _this = this
......@@ -373,7 +373,7 @@
}).map(k => {
return _this.cells.find(c => c.uuid === k)
})
this.$store.commit('mosysGridEditorStore/setSelectedCells', selectedCells)
this.$store.commit('mosys/setSelectedCells', selectedCells)
},
updateCellUIStates () {
let newCellUIStates = {}
......
......@@ -9,7 +9,7 @@
q-tab(slot="title", name="tab-youtube") YouTube
q-btn(slot="title", icon="close",
small, flat, round, class="fixed", style="right: 2px; margin-top: 3px",
@click="event => {$store.commit('mosysGridEditorStore/hideSources')}")
@click="event => {$store.commit('mosys/hideSources')}")
q-tab-pane(name="tab-default-cells")
template(v-if="this.selectedCells.length > 0")
......@@ -69,10 +69,10 @@
return userHasFeature(this.user, 'documents')
},
currentStoreTab () {
return this.$store.state.mosysGridEditorStore.sourcesTabName
return this.$store.state.mosys.sourcesTabName
},
selectedCells () {
return this.$store.state.mosysGridEditorStore.selectedCells
return this.$store.state.mosys.selectedCells
}
},
watch: {
......@@ -83,12 +83,12 @@
},
selectedTab () {
if (this.selectedTab !== this.currentStoreTab) {
this.$store.commit('mosysGridEditorStore/setSourcesTab', this.selectedTab)
this.$store.commit('mosys/setSourcesTab', this.selectedTab)
}
}
},
beforeDestroy () {
this.$store.commit('mosysGridEditorStore/hideSources')
this.$store.commit('mosys/hideSources')
}
}
</script>
......
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