mirror of
https://github.com/DCsunset/taskwarrior-webui.git
synced 2025-08-20 01:13:06 +02:00
feat(frontend): add badges and period for recurring tasks
This commit is contained in:
parent
42cc3489a6
commit
3bb7816c1e
1 changed files with 28 additions and 0 deletions
|
@ -103,6 +103,31 @@
|
||||||
</v-row>
|
</v-row>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template v-slot:item.description="{ item }">
|
||||||
|
<v-tooltip
|
||||||
|
top
|
||||||
|
v-if="item.mask"
|
||||||
|
>
|
||||||
|
<template v-slot:activator="{ on, attrs }">
|
||||||
|
<span
|
||||||
|
v-bind="attrs"
|
||||||
|
v-on="on"
|
||||||
|
>
|
||||||
|
<v-badge
|
||||||
|
inline
|
||||||
|
content="R"
|
||||||
|
>
|
||||||
|
{{ item.description }}
|
||||||
|
</v-badge>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
<span>Recurring template</span>
|
||||||
|
</v-tooltip>
|
||||||
|
<template v-else>
|
||||||
|
{{ item.description }}
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
|
||||||
<template v-if="status === 'waiting'" v-slot:item.wait="{ item }">
|
<template v-if="status === 'waiting'" v-slot:item.wait="{ item }">
|
||||||
{{ displayDate(item.wait) }}
|
{{ displayDate(item.wait) }}
|
||||||
</template>
|
</template>
|
||||||
|
@ -203,6 +228,9 @@ export default defineComponent({
|
||||||
{ text: 'Project', value: 'project' },
|
{ text: 'Project', value: 'project' },
|
||||||
{ text: 'Description', value: 'description' },
|
{ text: 'Description', value: 'description' },
|
||||||
{ text: 'Priority', value: 'priority' },
|
{ text: 'Priority', value: 'priority' },
|
||||||
|
...(status.value === 'recurring'
|
||||||
|
? [{ text: 'Recur', value: 'recur' }]
|
||||||
|
: []),
|
||||||
...(status.value !== 'waiting'
|
...(status.value !== 'waiting'
|
||||||
? [{ text: 'Due', value: 'due' }]
|
? [{ text: 'Due', value: 'due' }]
|
||||||
: [{ text: 'Wait', value: 'wait' }]),
|
: [{ text: 'Wait', value: 'wait' }]),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue