From 833cf056aa3faa548db80a6c20d4aa1cce15f3fe Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 7 Sep 2022 17:47:07 +0200 Subject: [PATCH 1/3] feat: allow marking a related task done directly from the list --- .../tasks/partials/relatedTasks.vue | 43 ++++++++++++++++--- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/src/components/tasks/partials/relatedTasks.vue b/src/components/tasks/partials/relatedTasks.vue index 2e717fd95..8cb4783bb 100644 --- a/src/components/tasks/partials/relatedTasks.vue +++ b/src/components/tasks/partials/relatedTasks.vue @@ -84,9 +84,11 @@ {{ rts.title }}
- +
+ + - {{ t.title }} - + {{ t.title }} + +
{ + tasks.forEach((t, key) => { + if (t.id === task.id) { + this.relatedTasks[kind][key] = task + } + }) + }) + + this.$message.success({message: this.$t('task.detail.updateSuccess')}) + }, }, }) @@ -387,5 +413,10 @@ export default defineComponent({ padding: 0.5rem; } +.task-done-checkbox { + padding: 0; + height: 18px; // The exact height of the checkbox in the container +} + @include modal-transition(); \ No newline at end of file -- 2.45.1 From f24ac01e3611c4aeaceb62ab69bf856f6c76e169 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 8 Sep 2022 13:51:47 +0200 Subject: [PATCH 2/3] feat: play pop sound from store --- src/components/tasks/partials/kanban-card.vue | 4 ---- src/components/tasks/partials/relatedTasks.vue | 5 ----- src/components/tasks/partials/singleTaskInList.vue | 6 +----- src/store/modules/tasks.ts | 4 ++++ src/views/tasks/TaskDetailView.vue | 4 ---- 5 files changed, 5 insertions(+), 18 deletions(-) diff --git a/src/components/tasks/partials/kanban-card.vue b/src/components/tasks/partials/kanban-card.vue index 73abace13..66e7e9332 100644 --- a/src/components/tasks/partials/kanban-card.vue +++ b/src/components/tasks/partials/kanban-card.vue @@ -68,7 +68,6 @@