Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Motion Bank
MB.js
Quasar Components MoSys
Commits
fa36beab
Commit
fa36beab
authored
Feb 19, 2019
by
Anton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor: rename mosysGridEditorStore to mosys
parent
287b4434
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
partials/GridEditor.vue
partials/GridEditor.vue
+5
-5
partials/GridEditorSources.vue
partials/GridEditorSources.vue
+5
-5
No files found.
partials/GridEditor.vue
View file @
fa36beab
...
...
@@ -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.mosys
GridEditorStore
.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('mosys
GridEditorStore
/showSources')
// // this.$store.commit('mosys
GridEditorStore
/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
(
'
mosys
GridEditorStore
/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
(
'
mosys
GridEditorStore
/setSelectedCells
'
,
selectedCells
)
this
.
$store
.
commit
(
'
mosys/setSelectedCells
'
,
selectedCells
)
},
updateCellUIStates
()
{
let
newCellUIStates
=
{}
...
...
partials/GridEditorSources.vue
View file @
fa36beab
...
...
@@ -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('mosys
GridEditorStore
/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
.
mosys
GridEditorStore
.
sourcesTabName
return
this
.
$store
.
state
.
mosys
.
sourcesTabName
},
selectedCells
()
{
return
this
.
$store
.
state
.
mosys
GridEditorStore
.
selectedCells
return
this
.
$store
.
state
.
mosys
.
selectedCells
}
},
watch
:
{
...
...
@@ -83,12 +83,12 @@
},
selectedTab
()
{
if
(
this
.
selectedTab
!==
this
.
currentStoreTab
)
{
this
.
$store
.
commit
(
'
mosys
GridEditorStore
/setSourcesTab
'
,
this
.
selectedTab
)
this
.
$store
.
commit
(
'
mosys/setSourcesTab
'
,
this
.
selectedTab
)
}
}
},
beforeDestroy
()
{
this
.
$store
.
commit
(
'
mosys
GridEditorStore
/hideSources
'
)
this
.
$store
.
commit
(
'
mosys/hideSources
'
)
}
}
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment