2019-01-29 23:13:28 +01:00
|
|
|
<template>
|
|
|
|
|
<div>
|
2019-03-13 01:53:53 +01:00
|
|
|
<q-list separator no-border class="todo-menu">
|
2019-01-29 23:13:28 +01:00
|
|
|
<div v-for="field in menuPopupTodo" :key="field.value">
|
2019-03-11 19:16:39 +01:00
|
|
|
<q-item clickable v-ripple v-if="(field.value !== 130) && (field.value !== 100)" :icon="field.icon"
|
2019-01-29 23:13:28 +01:00
|
|
|
@click.native="clickMenu(field.value)">
|
2019-03-11 19:16:39 +01:00
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon :name="field.icon"/>
|
|
|
|
|
</q-item-section>
|
2019-01-29 23:13:28 +01:00
|
|
|
|
2019-03-13 01:53:53 +01:00
|
|
|
<q-item-section v-if="field.value !== 120" label class="item-menu">
|
|
|
|
|
<q-item-label>{{field.label}}</q-item-label>
|
|
|
|
|
</q-item-section>
|
2019-01-29 23:13:28 +01:00
|
|
|
|
2019-03-11 19:16:39 +01:00
|
|
|
<q-item-section side top v-if="field.value === 101">
|
2019-01-29 23:13:28 +01:00
|
|
|
<q-checkbox v-model="itemtodo.enableExpiring"/>
|
2019-03-11 19:16:39 +01:00
|
|
|
</q-item-section>
|
2019-03-13 01:53:53 +01:00
|
|
|
<q-item-section side v-if="field.value === 110">
|
2019-01-29 23:13:28 +01:00
|
|
|
<q-checkbox v-model="itemtodo.completed"/>
|
2019-03-11 19:16:39 +01:00
|
|
|
</q-item-section>
|
2019-01-29 23:13:28 +01:00
|
|
|
|
2019-03-11 19:16:39 +01:00
|
|
|
|
|
|
|
|
<q-item-section v-if="field.value === 120">
|
2019-03-13 01:53:53 +01:00
|
|
|
<q-slider label
|
|
|
|
|
:class="$parent.menuProgress"
|
|
|
|
|
v-model="itemtodo.progress"
|
|
|
|
|
:min="0"
|
|
|
|
|
:max="100"
|
|
|
|
|
:step="5" @change="val => { lazy = val }"
|
|
|
|
|
/>
|
2019-02-12 19:09:43 +01:00
|
|
|
|
2019-03-11 19:16:39 +01:00
|
|
|
</q-item-section>
|
2019-03-13 01:53:53 +01:00
|
|
|
<q-item-section side v-if="field.value === 120">
|
2019-02-12 19:09:43 +01:00
|
|
|
<div>
|
2019-03-13 01:53:53 +01:00
|
|
|
<q-item-label style="color: blue">{{itemtodo.progress}} %</q-item-label>
|
2019-01-29 23:13:28 +01:00
|
|
|
</div>
|
2019-03-11 19:16:39 +01:00
|
|
|
</q-item-section>
|
2019-01-29 23:13:28 +01:00
|
|
|
</q-item>
|
2019-03-11 19:16:39 +01:00
|
|
|
<q-item v-if="(field.value === 100)" :icon="field.icon"
|
2019-01-30 02:01:04 +01:00
|
|
|
@click.native="clickMenu(field.value)">
|
2019-03-11 19:16:39 +01:00
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon :name="field.icon" inverted color="primary"/>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section class="item-menu">
|
|
|
|
|
{{field.label}}
|
|
|
|
|
</q-item-section>
|
2019-01-30 02:01:04 +01:00
|
|
|
</q-item>
|
2019-03-13 01:53:53 +01:00
|
|
|
<q-item clickable v-if="(field.value === 130)">
|
2019-03-11 19:16:39 +01:00
|
|
|
<q-item-section avatar>
|
2019-03-13 01:53:53 +01:00
|
|
|
<q-icon name="priority_high" inverted color="primary"/>
|
2019-03-11 19:16:39 +01:00
|
|
|
</q-item-section>
|
2019-01-29 23:13:28 +01:00
|
|
|
|
2019-03-13 01:53:53 +01:00
|
|
|
<q-item-section>{{field.label}}</q-item-section>
|
|
|
|
|
<q-item-section side>
|
|
|
|
|
<q-icon name="keyboard_arrow_right"/>
|
2019-03-11 19:16:39 +01:00
|
|
|
</q-item-section>
|
2019-01-29 23:13:28 +01:00
|
|
|
|
2019-03-13 01:53:53 +01:00
|
|
|
<q-menu auto-close anchor="bottom middle" self="top middle">
|
|
|
|
|
<q-list dense>
|
|
|
|
|
<q-item side clickable :icon="field.icon"
|
|
|
|
|
@click="clickMenu(field.value)">
|
|
|
|
|
|
|
|
|
|
<q-item-section>
|
|
|
|
|
<q-list dense>
|
|
|
|
|
<q-item clickable v-ripple v-for="fieldprior in selectPriority"
|
|
|
|
|
:key="fieldprior.value"
|
|
|
|
|
@click="setPriority(fieldprior.value)">
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon :name="fieldprior.icon" inverted color="primary"/>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>
|
|
|
|
|
{{fieldprior.label}}
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
2019-01-29 23:13:28 +01:00
|
|
|
</q-item>
|
|
|
|
|
</div>
|
|
|
|
|
</q-list>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" src="./SubMenus.ts">
|
|
|
|
|
</script>
|
2019-02-02 20:13:06 +01:00
|
|
|
|
2019-02-12 19:09:43 +01:00
|
|
|
<style lang="scss">
|
2019-02-02 20:13:06 +01:00
|
|
|
@import './SubMenus.scss';
|
|
|
|
|
</style>
|