+ {#each context.projectData.tasks.filter(t => !context.isTaskHidden(t.taskId)) as task (task.taskId)}
+
+ {/each}
+
+
+
- {#each context.projectData.tasks.filter(t => !context.isTaskHidden(t.taskId)) as task (task.taskId)}
-
- {/each}
-
-
+
{#if context.selectedTaskId !== -1}
{#key context.selectedTaskId}
diff --git a/src/components/Toolbar.svelte b/src/components/Toolbar.svelte
index 6fc22f5..59207e8 100644
--- a/src/components/Toolbar.svelte
+++ b/src/components/Toolbar.svelte
@@ -33,16 +33,16 @@
let toolbarButtons = $derived(taskId == RootTaskId ? [
IconCode.CREATE_LINKED_NOTE,
IconCode.FOCUS,
- IconCode.STATUS
+ IconCode.STATUS_SUBMENU
] : [
IconCode.CREATE_LINKED_NOTE,
- IconCode.REMOVE,
+ IconCode.REMOVE_SUBMENU,
IconCode.REPARENT,
IconCode.KEY,
IconCode.LOCK,
IconCode.FOCUS,
- IconCode.STATUS
+ IconCode.STATUS_SUBMENU
]);
let removeButtons = [
@@ -86,13 +86,13 @@
{/each}
{/key}
- {#if context.pressedButtonCode === IconCode.REMOVE}
+ {#if context.pressedButtonCode === IconCode.REMOVE_SUBMENU}
{#key context.updateOnZoomCounter}
@@ -102,13 +102,13 @@
{/if}
- {#if context.pressedButtonCode === IconCode.STATUS}
+ {#if context.pressedButtonCode === IconCode.STATUS_SUBMENU}
{#key context.updateOnZoomCounter}
diff --git a/src/types.ts b/src/types.ts
index bb9fa39..b37efd6 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -1,13 +1,13 @@
import type { EasingFunction } from "svelte/transition";
export enum IconCode {
- REMOVE,
+ REMOVE_SUBMENU,
KEY,
LOCK,
FOCUS,
REPARENT,
CREATE_LINKED_NOTE,
- STATUS,
+ STATUS_SUBMENU,
REMOVE_SINGLE,
REMOVE_MULTIPLE,
STATUS_DRAFT,