diff --git a/frontend/src/lib/components/document/DescriptionSection.svelte b/frontend/src/lib/components/document/DescriptionSection.svelte index ac5b7cd0..8479f9b9 100644 --- a/frontend/src/lib/components/document/DescriptionSection.svelte +++ b/frontend/src/lib/components/document/DescriptionSection.svelte @@ -5,6 +5,7 @@ import { m } from '$lib/paraglide/messages.js'; let { tags = $bindable([]), + currentTitle = $bindable(''), initialTitle = '', initialDocumentLocation = '', initialSummary = '', @@ -13,6 +14,7 @@ let { hideTitle = false }: { tags?: Tag[]; + currentTitle?: string; initialTitle?: string; initialDocumentLocation?: string; initialSummary?: string; @@ -22,8 +24,8 @@ let { } = $props(); let titleDirty = $state(false); -let titleOverride = $state(untrack(() => initialTitle)); -let titleValue = $derived(titleDirty ? titleOverride : suggestedTitle || titleOverride); +currentTitle = untrack(() => initialTitle); +const titleValue = $derived(titleDirty ? currentTitle : suggestedTitle || currentTitle);
@@ -33,7 +35,7 @@ let titleValue = $derived(titleDirty ? titleOverride : suggestedTitle || titleOv
{#if !hideTitle} - +
{/if} - -
- - -

{m.form_helper_archive_location()}

-
-

{m.form_label_tags()}

@@ -91,5 +77,28 @@ let titleValue = $derived(titleDirty ? titleOverride : suggestedTitle || titleOv >{initialSummary}
+ + +
+
+ Optional +
+
+ + +
+ + +

{m.form_helper_archive_location()}

+