diff --git a/frontend/src/components/ActivityForm.svelte b/frontend/src/components/ActivityForm.svelte index 40ec2c3..ef0ad95 100644 --- a/frontend/src/components/ActivityForm.svelte +++ b/frontend/src/components/ActivityForm.svelte @@ -45,6 +45,14 @@ : '', ); // svelte-ignore state_referenced_locally + let description = $state( + existing + ? (existing.visibility === 'private' + ? initialPriv?.description ?? '' + : existing.description ?? '') + : '', + ); + // svelte-ignore state_referenced_locally let tags: string[] = $state( existing ? (existing.visibility === 'private' ? initialPriv?.tags ?? [] : [...existing.tags]) @@ -103,6 +111,7 @@ const payload: PrivatePayload = { title: title.trim(), tags, + description: description.trim() || undefined, loc_label: locLabel || undefined, scheduled_at: scheduledEpoch() ?? undefined, }; @@ -116,6 +125,7 @@ return { visibility, title: title.trim(), + description: description.trim() || null, tags, loc_label: locLabel || null, scheduled_at: scheduledEpoch(), @@ -195,6 +205,10 @@ + + +
{decrypted.description}
+ {/if} {#if decrypted.tags.length}{activity.description}
+ {/if} {#if activity.tags.length}