From eebb3d9f77f010b2515850220a929d398881776e Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Sat, 3 Apr 2021 16:55:47 +0200 Subject: [PATCH] Add Link button to non-link tasks to link them elsewhere. --- svelte-ui/src/components/TaskEntry.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/svelte-ui/src/components/TaskEntry.svelte b/svelte-ui/src/components/TaskEntry.svelte index 5f948e6..650b97d 100644 --- a/svelte-ui/src/components/TaskEntry.svelte +++ b/svelte-ui/src/components/TaskEntry.svelte @@ -24,6 +24,7 @@ let mdTaskEdit: ModalData; let mdTaskDelete: ModalData; let mdTaskUnlink: ModalData; + let mdTaskLink: ModalData; let isMoving = false; let isLinked = false; @@ -68,6 +69,7 @@ $: mdLogAdd = {name: "log.add", task: {...task, project}}; $: mdTaskEdit = {name: "task.edit", task: {...task, project}}; $: mdTaskDelete = {name: "task.delete", task: {...task, project}}; + $: mdTaskLink = {name: "tasklink.add", task}; $: mdTaskUnlink = {name: "tasklink.delete", task, project}; $: isLinked = task.projectId !== project.id; @@ -88,6 +90,7 @@ {#if isLinked} {:else} + ยท {#if !isMoving && (!task.active) }