|
@ -6,6 +6,8 @@ |
|
|
import TaskPanel from "./TaskPanel.svelte"; |
|
|
import TaskPanel from "./TaskPanel.svelte"; |
|
|
import Editor from "./Editor.svelte"; |
|
|
import Editor from "./Editor.svelte"; |
|
|
import Modal from "svelte-simple-modal"; |
|
|
import Modal from "svelte-simple-modal"; |
|
|
|
|
|
import GraphEdge from "./GraphEdge.svelte"; |
|
|
|
|
|
import TaskDetailEditor from "./TaskDetailEditor.svelte"; |
|
|
|
|
|
|
|
|
const tasksPromise: Promise<TasksFile> = loadTasks(); |
|
|
const tasksPromise: Promise<TasksFile> = loadTasks(); |
|
|
|
|
|
|
|
@ -39,8 +41,8 @@ |
|
|
<div style="height: 100%"> |
|
|
<div style="height: 100%"> |
|
|
<Graph |
|
|
<Graph |
|
|
tasks={t} |
|
|
tasks={t} |
|
|
on:selectTask={(e) => (location.hash = `#task/${e.detail.id}`)} |
|
|
on:selectTask={(e) => { if (e.detail.type != "label") (location.hash = `#task/${e.detail.id}`)}} |
|
|
on:preSelectTask={(e) => taskPanel.preSelect(e.detail)} |
|
|
on:preSelectTask={(e) => taskPanel.preSelect(e.detail) } |
|
|
on:unPreSelectTask={(e) => taskPanel.unPreselect(e.detail)} /> |
|
|
on:unPreSelectTask={(e) => taskPanel.unPreselect(e.detail)} /> |
|
|
</div> |
|
|
</div> |
|
|
</TasksLoader> |
|
|
</TasksLoader> |
|
|