Skip to content

Commit 210abad

Browse files
chore: show delete task last
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
1 parent d038d92 commit 210abad

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/components/TaskBody.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,21 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
119119
{{ task.hideCompletedSubtasks ? t('tasks', 'Show closed subtasks') : t('tasks', 'Hide closed subtasks') }}
120120
</NcActionButton>
121121
<NcActionButton v-if="!readOnly"
122+
:close-after-click="true"
122123
class="reactive no-nav"
123-
@click="scheduleTaskDeletion(task)">
124+
@click="duplicateTask({ task })">
124125
<template #icon>
125-
<Delete :size="20" />
126+
<ContentDuplicate :size="20" />
126127
</template>
127-
{{ t('tasks', 'Delete task') }}
128+
{{ t('tasks', 'Duplicate task') }}
128129
</NcActionButton>
129130
<NcActionButton v-if="!readOnly"
130-
:close-after-click="true"
131131
class="reactive no-nav"
132-
@click="duplicateTask({ task })">
132+
@click="scheduleTaskDeletion(task)">
133133
<template #icon>
134-
<ContentDuplicate :size="20" />
134+
<Delete :size="20" />
135135
</template>
136-
{{ t('tasks', 'Duplicate task') }}
136+
{{ t('tasks', 'Delete task') }}
137137
</NcActionButton>
138138
</NcActions>
139139
<NcActions v-if="task.deleteCountdown !== null">
@@ -214,8 +214,8 @@ import NcTextField from '@nextcloud/vue/components/NcTextField'
214214
import Linkify from '@nextcloud/vue/directives/Linkify'
215215
216216
import Bell from 'vue-material-design-icons/BellOutline.vue'
217-
import Delete from 'vue-material-design-icons/TrashCanOutline.vue'
218217
import ContentDuplicate from 'vue-material-design-icons/ContentDuplicate.vue'
218+
import Delete from 'vue-material-design-icons/TrashCanOutline.vue'
219219
import Eye from 'vue-material-design-icons/EyeOutline.vue'
220220
import Pin from 'vue-material-design-icons/PinOutline.vue'
221221
import Plus from 'vue-material-design-icons/Plus.vue'
@@ -247,8 +247,8 @@ export default {
247247
NcProgressBar,
248248
NcTextField,
249249
Bell,
250-
Delete,
251250
ContentDuplicate,
251+
Delete,
252252
Eye,
253253
Pin,
254254
Plus,

0 commit comments

Comments
 (0)