|
|
@ -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; |
|
|
|
</script> |
|
|
@ -88,6 +90,7 @@ |
|
|
|
{#if isLinked} |
|
|
|
<Option open={mdTaskUnlink}>Unlink</Option> |
|
|
|
{:else} |
|
|
|
<Option open={mdTaskLink}>Link</Option> |
|
|
|
<Option open={mdTaskDelete}>Delete</Option> |
|
|
|
· |
|
|
|
{#if !isMoving && (!task.active) } |
|
|
|