feat(task): group related task action buttons
This commit is contained in:
parent
3fec92283b
commit
3bb5308141
@ -610,6 +610,9 @@
|
|||||||
"belongsToProject": "This task belongs to project '{project}'",
|
"belongsToProject": "This task belongs to project '{project}'",
|
||||||
"due": "Due {at}",
|
"due": "Due {at}",
|
||||||
"closePopup": "Close popup",
|
"closePopup": "Close popup",
|
||||||
|
"organization": "Organization",
|
||||||
|
"management": "Management",
|
||||||
|
"dateAndTime": "Date and time",
|
||||||
"delete": {
|
"delete": {
|
||||||
"header": "Delete this task",
|
"header": "Delete this task",
|
||||||
"text1": "Are you sure you want to remove this task?",
|
"text1": "Are you sure you want to remove this task?",
|
||||||
|
@ -281,6 +281,8 @@
|
|||||||
<!-- Comments -->
|
<!-- Comments -->
|
||||||
<comments :can-write="canWrite" :task-id="taskId"/>
|
<comments :can-write="canWrite" :task-id="taskId"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Task Actions -->
|
||||||
<div class="column is-one-third action-buttons d-print-none" v-if="canWrite || isModal">
|
<div class="column is-one-third action-buttons d-print-none" v-if="canWrite || isModal">
|
||||||
<template v-if="canWrite">
|
<template v-if="canWrite">
|
||||||
<x-button
|
<x-button
|
||||||
@ -301,14 +303,18 @@
|
|||||||
@update:model-value="sub => task.subscription = sub"
|
@update:model-value="sub => task.subscription = sub"
|
||||||
/>
|
/>
|
||||||
<x-button
|
<x-button
|
||||||
@click="setFieldActive('assignees')"
|
@click="toggleFavorite"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
v-shortcut="'a'"
|
:icon="task.isFavorite ? 'star' : ['far', 'star']"
|
||||||
v-cy="'taskDetail.assign'"
|
v-shortcut="'s'"
|
||||||
>
|
>
|
||||||
<span class="icon is-small"><icon icon="users"/></span>
|
{{
|
||||||
{{ $t('task.detail.actions.assign') }}
|
task.isFavorite ? $t('task.detail.actions.unfavorite') : $t('task.detail.actions.favorite')
|
||||||
|
}}
|
||||||
</x-button>
|
</x-button>
|
||||||
|
|
||||||
|
<span class="action-heading">{{ $t('task.detail.organization') }}</span>
|
||||||
|
|
||||||
<x-button
|
<x-button
|
||||||
@click="setFieldActive('labels')"
|
@click="setFieldActive('labels')"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
@ -325,6 +331,61 @@
|
|||||||
>
|
>
|
||||||
{{ $t('task.detail.actions.priority') }}
|
{{ $t('task.detail.actions.priority') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
|
<x-button
|
||||||
|
@click="setFieldActive('percentDone')"
|
||||||
|
variant="secondary"
|
||||||
|
icon="percent"
|
||||||
|
>
|
||||||
|
{{ $t('task.detail.actions.percentDone') }}
|
||||||
|
</x-button>
|
||||||
|
<x-button
|
||||||
|
@click="setFieldActive('color')"
|
||||||
|
variant="secondary"
|
||||||
|
icon="fill-drip"
|
||||||
|
:icon-color="color"
|
||||||
|
v-shortcut="'c'"
|
||||||
|
>
|
||||||
|
{{ $t('task.detail.actions.color') }}
|
||||||
|
</x-button>
|
||||||
|
|
||||||
|
<span class="action-heading">{{ $t('task.detail.management') }}</span>
|
||||||
|
|
||||||
|
<x-button
|
||||||
|
@click="setFieldActive('assignees')"
|
||||||
|
variant="secondary"
|
||||||
|
v-shortcut="'a'"
|
||||||
|
v-cy="'taskDetail.assign'"
|
||||||
|
>
|
||||||
|
<span class="icon is-small"><icon icon="users"/></span>
|
||||||
|
{{ $t('task.detail.actions.assign') }}
|
||||||
|
</x-button>
|
||||||
|
<x-button
|
||||||
|
@click="setFieldActive('attachments')"
|
||||||
|
variant="secondary"
|
||||||
|
icon="paperclip"
|
||||||
|
v-shortcut="'f'"
|
||||||
|
>
|
||||||
|
{{ $t('task.detail.actions.attachments') }}
|
||||||
|
</x-button>
|
||||||
|
<x-button
|
||||||
|
@click="setRelatedTasksActive()"
|
||||||
|
variant="secondary"
|
||||||
|
icon="sitemap"
|
||||||
|
v-shortcut="'r'"
|
||||||
|
>
|
||||||
|
{{ $t('task.detail.actions.relatedTasks') }}
|
||||||
|
</x-button>
|
||||||
|
<x-button
|
||||||
|
@click="setFieldActive('moveProject')"
|
||||||
|
variant="secondary"
|
||||||
|
icon="list"
|
||||||
|
v-shortcut="'m'"
|
||||||
|
>
|
||||||
|
{{ $t('task.detail.actions.moveProject') }}
|
||||||
|
</x-button>
|
||||||
|
|
||||||
|
<span class="action-heading">{{ $t('task.detail.dateAndTime') }}</span>
|
||||||
|
|
||||||
<x-button
|
<x-button
|
||||||
@click="setFieldActive('dueDate')"
|
@click="setFieldActive('dueDate')"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
@ -362,56 +423,6 @@
|
|||||||
>
|
>
|
||||||
{{ $t('task.detail.actions.repeatAfter') }}
|
{{ $t('task.detail.actions.repeatAfter') }}
|
||||||
</x-button>
|
</x-button>
|
||||||
<x-button
|
|
||||||
@click="setFieldActive('percentDone')"
|
|
||||||
variant="secondary"
|
|
||||||
icon="percent"
|
|
||||||
>
|
|
||||||
{{ $t('task.detail.actions.percentDone') }}
|
|
||||||
</x-button>
|
|
||||||
<x-button
|
|
||||||
@click="setFieldActive('attachments')"
|
|
||||||
variant="secondary"
|
|
||||||
icon="paperclip"
|
|
||||||
v-shortcut="'f'"
|
|
||||||
>
|
|
||||||
{{ $t('task.detail.actions.attachments') }}
|
|
||||||
</x-button>
|
|
||||||
<x-button
|
|
||||||
@click="setRelatedTasksActive()"
|
|
||||||
variant="secondary"
|
|
||||||
icon="sitemap"
|
|
||||||
v-shortcut="'r'"
|
|
||||||
>
|
|
||||||
{{ $t('task.detail.actions.relatedTasks') }}
|
|
||||||
</x-button>
|
|
||||||
<x-button
|
|
||||||
@click="setFieldActive('moveProject')"
|
|
||||||
variant="secondary"
|
|
||||||
icon="list"
|
|
||||||
v-shortcut="'m'"
|
|
||||||
>
|
|
||||||
{{ $t('task.detail.actions.moveProject') }}
|
|
||||||
</x-button>
|
|
||||||
<x-button
|
|
||||||
@click="setFieldActive('color')"
|
|
||||||
variant="secondary"
|
|
||||||
icon="fill-drip"
|
|
||||||
:icon-color="color"
|
|
||||||
v-shortcut="'c'"
|
|
||||||
>
|
|
||||||
{{ $t('task.detail.actions.color') }}
|
|
||||||
</x-button>
|
|
||||||
<x-button
|
|
||||||
@click="toggleFavorite"
|
|
||||||
variant="secondary"
|
|
||||||
:icon="task.isFavorite ? 'star' : ['far', 'star']"
|
|
||||||
v-shortcut="'s'"
|
|
||||||
>
|
|
||||||
{{
|
|
||||||
task.isFavorite ? $t('task.detail.actions.unfavorite') : $t('task.detail.actions.favorite')
|
|
||||||
}}
|
|
||||||
</x-button>
|
|
||||||
<x-button
|
<x-button
|
||||||
@click="showDeleteModal = true"
|
@click="showDeleteModal = true"
|
||||||
icon="trash-alt"
|
icon="trash-alt"
|
||||||
@ -1000,4 +1011,13 @@ h3 .button {
|
|||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.action-heading {
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--grey-700);
|
||||||
|
font-size: .75rem;
|
||||||
|
font-weight: 700;
|
||||||
|
margin: .5rem 0;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
Loading…
x
Reference in New Issue
Block a user