Commit e32ba79f authored by Anton Koch's avatar Anton Koch

Merge branch '23-mosys---mobile-add-cells-(shared)' into 'master'

shared: mosys mobile

See merge request !26
parents e20e5a5c 117d4cf5
Pipeline #29659 passed with stage
in 4 minutes and 14 seconds
......@@ -15,31 +15,31 @@
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"
)
v-model="models[i.model]",
:label="i.label",
:class="i.class",
@input="i.onInput"
)
// toggle
q-btn.q-mr-sm(
v-if="f.type === 'toggle'",
@click="f.onToggle(f.model)",
:class="[getModel(f.model) ? 'bg-primary text-white' : 'bg-faded']",
:label="f.label",
round, size="md"
)
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",
:label="f.label",
:key="f.name"
)
@click="onClick(f)",
:color="f.color || 'faded'",
:icon="f.icon",
:label="f.label",
:key="f.name"
)
//
q-btn.q-ml-sm(
......@@ -155,6 +155,17 @@
// this.$store.commit('mosys/toggleAddCells')
// }
// },
{
type: 'toggle',
icon: 'fullscreen',
onToggle: () => {
this.$q.fullscreen.toggle()
}
},
{
type: 'toggle',
icon: 'grid_on'
},
{
type: 'toggle',
icon: 'add', // folder_open
......
<template lang="pug">
q-toolbar(color="dark", :class="{'q-pa-none': isMobile}", style="border-bottom: 1px solid #333;")
// q-toolbar(color="dark", :class="{'q-pa-none': isMobile}", style="border-bottom: 1px solid #333;")
q-toolbar(color="dark", :class="{'q-pa-none': isMobile}")
// menu button
q-btn(@click="handlerMenuDrawer", flat, round, size="md", :class="{'q-ml-sm': isMobile}")
......@@ -20,8 +21,8 @@
span(v-if="currentApp === 'users' && user") {{ user.profile ? user.profile.name : 'Unknown' }}
span(v-else, style="text-transform: capitalize;") {{ currentApp }}
// subnavigation
page-sub-nav
// subnavigation
page-sub-nav
// drawer
q-layout-drawer.bg-dark(v-model="menuDrawer", content-class="bg-dark", overlay,
......
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