Commit 329e7f9e authored by Anton Koch's avatar Anton Koch

Merge branch '24-edit-grid-dimensions---shared' into 'master'

new add/delete cell/colums GUI for mosys (desktop) (#24)

See merge request !30
parents b786174e 1dccf5e9
Pipeline #50539 passed with stage
in 5 minutes and 35 seconds
......@@ -5,41 +5,42 @@
// .inline-block(:class="currentConfig.navLinks ? ['ui-border-right'] : ''")
.inline-block
template(v-if="currentSpecialFunctions", v-for="f in currentSpecialFunctions")
template(v-if="!editGrid")
template(v-if="currentSpecialFunctions", v-for="f in currentSpecialFunctions")
// popover
q-btn.q-mr-sm(v-if="f.type === 'popover'", :icon="f.icon", :class="f.iconClass",
:key="f.name", :color="f.color || 'faded'",
round, size="md")
q-popover
q-list
q-item(v-for="i in f.items")
q-checkbox(
v-model="models[i.model]",
:label="i.label",
:class="i.class",
@input="i.onInput"
)
// popover
q-btn.q-mr-sm(v-if="f.type === 'popover'", :icon="f.icon", :class="f.iconClass",
:key="f.name", :color="f.color || 'faded'",
round, size="md")
q-popover
q-list
q-item(v-for="i in f.items")
q-checkbox(
v-model="models[i.model]",
:label="i.label",
:class="i.class",
@input="i.onInput"
)
// toggle
q-btn.q-ml-sm(
v-if="f.type === 'toggle'",
@click="f.onToggle(f.model)",
:class="[getModel(f.model) ? 'bg-primary text-white' : '']",
:label="f.label",
round, size="md", flat
)
q-icon(v-if="f.icon", :name="f.icon", :class="f.iconClass")
// link
template(v-if="f.type === 'link'")
q-btn.q-mr-sm(
@click="onClick(f)",
:color="f.color || 'faded'",
:icon="f.icon",
// toggle
q-btn.q-ml-sm(
v-if="f.type === 'toggle'",
@click="f.onToggle(f.model)",
:class="[getModel(f.model) ? 'bg-primary text-white' : '']",
:label="f.label",
:key="f.name"
round, size="md", flat
)
q-icon(v-if="f.icon", :name="f.icon", :class="f.iconClass")
// link
template(v-if="f.type === 'link'")
q-btn.q-mr-sm(
@click="onClick(f)",
:color="f.color || 'faded'",
:icon="f.icon",
:label="f.label",
:key="f.name"
)
//
q-btn.q-ml-sm(
......@@ -164,7 +165,10 @@
},
{
type: 'toggle',
icon: 'grid_on'
icon: 'grid_on',
onToggle: () => {
this.$store.commit('mosys/toggleGridEdit')
}
},
{
type: 'toggle',
......@@ -359,7 +363,8 @@
visibilityDetails: 'swimLane/getVisibilityDetails',
visibilityDrawer: 'swimLane/getVisibilityDrawer',
showSources: 'mosys/getShowSources',
showAddCells: 'mosys/getShowAddCells'
editGrid: 'mosys/getEditGrid'
// showAddCells: 'mosys/getShowAddCells'
}),
currentSpecialFunctions () {
if (this.$route.name in this.currentConfig.specialFunctions) {
......
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