Commit a651f95c authored by christianrhansen's avatar christianrhansen

added close-button to sub nav. removed "edit grid"-button from bar, too.

parent 41b255c3
Pipeline #50211 passed with stage
in 5 minutes and 30 seconds
......@@ -5,41 +5,46 @@
// .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"
)
template(v-else)
q-btn.q-ml-sm(@click="$store.commit('mosys/toggleGridEdit')", round, size="md", flat)
q-icon(name="clear")
//
q-btn.q-ml-sm(
......@@ -162,6 +167,7 @@
this.$q.fullscreen.toggle()
}
},
/*
{
type: 'toggle',
icon: 'grid_on',
......@@ -169,6 +175,7 @@
this.$store.commit('mosys/toggleGridEdit')
}
},
*/
{
type: 'toggle',
icon: 'add', // folder_open
......@@ -361,7 +368,8 @@
visibilitySwimlanes: 'swimLane/getVisibilitySwimlanes',
visibilityDetails: 'swimLane/getVisibilityDetails',
visibilityDrawer: 'swimLane/getVisibilityDrawer',
showSources: 'mosys/getShowSources'
showSources: 'mosys/getShowSources',
editGrid: 'mosys/getEditGrid'
// showAddCells: 'mosys/getShowAddCells'
}),
currentSpecialFunctions () {
......
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