fix menu ShowTask

This commit is contained in:
Paolo Arena
2019-03-15 01:06:40 +01:00
parent 527da316da
commit 9877344b4d
4 changed files with 39 additions and 24 deletions

View File

@@ -11,7 +11,7 @@ export async function askConfirm($q: any, mytitle, mytext, ok, cancel) {
}, },
title: mytitle title: mytitle
}).then((ris) => { }).then((ris) => {
return true return ris
}).catch(() => { }).catch(() => {
return false return false
}) })

View File

@@ -9,29 +9,41 @@
icon="settings"> icon="settings">
<q-menu id="popconfig" self="top right"> <q-menu id="popconfig" self="top right">
<q-list link separator no-border class="todo-menu"> <q-list link separator no-border class="todo-menu">
<div v-for="field in menuPopupConfigTodo" :key="field.value"> <q-item clickable v-for="field in menuPopupConfigTodo" :key="field.value">
<q-item clickable> <q-item-section avatar>
<q-icon :name="field.icon"/>
</q-item-section>
<q-item-section avatar> <q-item-section>{{field.label}}</q-item-section>
<q-icon :name="field.icon"/>
<q-item-section side v-if="showTask(field.value)">
<q-item-section side>
<q-icon name="keyboard_arrow_right"/>
</q-item-section> </q-item-section>
<q-item-section> <q-menu auto-close anchor="bottom middle" self="top middle">
<q-item-label v-if="showTask(field.value)"> <q-list dense>
<q-item side :icon="field.icon">
<q-select <q-item-section>
color="secondary" <q-list dense>
:label="field.label" <q-item clickable v-ripple v-for="opt in listOptionShowTask"
v-model="showtype" :key="opt.value"
:options="listOptionShowTask"/> @click="showtype = opt.value">
</q-item-label> <q-item-section avatar>
<q-item-label v-else> <q-icon :name="opt.icon" inverted color="primary"/>
<q-item-section label class="item-menu">{{field.label}} </q-item-section>
</q-item-section> <q-item-section>
</q-item-label> {{opt.label}}
</q-item-section> </q-item-section>
</q-item> </q-item>
</div> </q-list>
</q-item-section>
</q-item>
</q-list>
</q-menu>
</q-item-section>
</q-item>
</q-list> </q-list>
</q-menu> </q-menu>
</q-btn> </q-btn>

View File

@@ -384,7 +384,7 @@
</div> </div>
<div class="q-mt-xs text-weight-thin" style="text-shadow: 4px 4px 8px #555;"> <div class="q-mt-xs text-weight-thin" style="text-shadow: 4px 4px 8px #555;">
Contacts {{$t('homepage.contacts')}}
<!--Released under the--> <!--Released under the-->
<!--<a href="https://github.com/quasarframework/quasar/blob/dev/LICENSE" target="_blank"--> <!--<a href="https://github.com/quasarframework/quasar/blob/dev/LICENSE" target="_blank"-->
<!--rel="noopener noreferrer" class="doc-link">--> <!--rel="noopener noreferrer" class="doc-link">-->
@@ -397,10 +397,10 @@
</div> </div>
</div> </div>
<q-page-scroller position="bottom-right" :scroll-offset="850" :offset="[18, 18]" style="opacity: 0.3">
<q-btn fab icon="keyboard_arrow_up" color="accent" />
</q-page-scroller>
</section> </section>
<q-page-scroller position="bottom-right" :scroll-offset="850" :offset="[18, 18]" style="opacity: 0.3">
<q-btn fab icon="keyboard_arrow_up" color="accent" />
</q-page-scroller>
</div> </div>
</q-page> </q-page>

View File

@@ -109,6 +109,7 @@ const messages = {
'Verranno accettate solo donazioni Libere di privati ed Associazioni no-profit, in linea con i Principi, che serviranno per coprire le spese.<br>' + 'Verranno accettate solo donazioni Libere di privati ed Associazioni no-profit, in linea con i Principi, che serviranno per coprire le spese.<br>' +
'<strong>Grazie a Tutti per il sostegno</strong>. ' '<strong>Grazie a Tutti per il sostegno</strong>. '
}, },
contacts: 'Contatti'
}, },
pages: { pages: {
home: 'Principale', home: 'Principale',
@@ -341,6 +342,7 @@ const messages = {
'Solo se aceptarán donaciones de particulares y asociaciones sin änimo de lucro, en línea con los Principios, que se utilizarán para cubrir los gastos. <br>' + 'Solo se aceptarán donaciones de particulares y asociaciones sin änimo de lucro, en línea con los Principios, que se utilizarán para cubrir los gastos. <br>' +
'<strong>Gracias a todos por el apoyo</strong>. ' '<strong>Gracias a todos por el apoyo</strong>. '
}, },
contacts: 'Contactos'
}, },
pages: { pages: {
home: 'Principal', home: 'Principal',
@@ -566,6 +568,7 @@ const messages = {
'Only donations from private individuals and non-profit associations will be accepted, in line with the Principles, which will be used to cover the expenses. <br>' + 'Only donations from private individuals and non-profit associations will be accepted, in line with the Principles, which will be used to cover the expenses. <br>' +
'<strong>Thanks all for the support</strong>. ' '<strong>Thanks all for the support</strong>. '
}, },
contacts: 'Contacts'
}, },
pages: { pages: {
home: 'Dashboard', home: 'Dashboard',