diff --git a/ka-note/client/src/lib/components/ContextHeader.svelte b/ka-note/client/src/lib/components/ContextHeader.svelte
index 9a6abe0..ffb4b5b 100644
--- a/ka-note/client/src/lib/components/ContextHeader.svelte
+++ b/ka-note/client/src/lib/components/ContextHeader.svelte
@@ -4,12 +4,12 @@
interface Props {
context: AgendaContext;
- mode: 'prep' | 'meeting';
- onmodechange: (mode: 'prep' | 'meeting') => void;
+ mode?: 'prep' | 'meeting';
+ onmodechange?: (mode: 'prep' | 'meeting') => void;
}
let { context, mode, onmodechange }: Props = $props();
- const showModeSwitch = $derived(context.type === 'meeting' && context.id !== 'daily-log');
+ const showModeSwitch = $derived(!!onmodechange && context.type === 'meeting' && context.id !== 'daily-log');
const canRename = $derived(context.id !== 'daily-log');
let editing = $state(false);
let nameInput = $state('');
@@ -71,13 +71,13 @@
diff --git a/ka-note/client/src/lib/components/ContextPage.svelte b/ka-note/client/src/lib/components/ContextPage.svelte
index 34b6f2e..2efa9e2 100644
--- a/ka-note/client/src/lib/components/ContextPage.svelte
+++ b/ka-note/client/src/lib/components/ContextPage.svelte
@@ -19,9 +19,10 @@
let { contextId }: Props = $props();
const context = liveQuery(() => db.contexts.get(contextId));
+ const isDailyLog = $derived(contextId === 'daily-log');
let mode = $state<'prep' | 'meeting'>(contextId === 'daily-log' ? 'meeting' : 'prep');
- let activeView = $state('agenda');
+ let activeView = $state('journal');
let compact = $state(false);
// Rating modal state
@@ -30,7 +31,7 @@
// Default view based on context type
$effect(() => {
if ($context) {
- if (contextId === 'daily-log') {
+ if (isDailyLog) {
activeView = 'journal';
} else if ($context.type === 'meeting') {
activeView = 'agenda';
@@ -81,8 +82,13 @@
{#if $context}
-
-
+ {#if isDailyLog}
+
+
+ {:else}
+
+
+ {/if}
{#if activeView === 'agenda'}
diff --git a/ka-note/client/src/lib/components/JournalView.svelte b/ka-note/client/src/lib/components/JournalView.svelte
index ed54e57..ffe59b2 100644
--- a/ka-note/client/src/lib/components/JournalView.svelte
+++ b/ka-note/client/src/lib/components/JournalView.svelte
@@ -196,7 +196,7 @@
class="self-start rounded bg-accent px-4 py-2 font-bold text-white hover:brightness-110"
onclick={handleAddEntry}
>
- + Eintrag hinzufügen
+ + {selectedLinkedContextId ? 'Thema hinzufügen' : 'Notiz hinzufügen'}
diff --git a/ka-note/client/src/lib/components/ViewTabs.svelte b/ka-note/client/src/lib/components/ViewTabs.svelte
index 0be1b34..6422671 100644
--- a/ka-note/client/src/lib/components/ViewTabs.svelte
+++ b/ka-note/client/src/lib/components/ViewTabs.svelte
@@ -1,13 +1,12 @@
-
Einstellungen
-
+
Keine Einstellungen vorhanden.