event.stopPropagation()} >

Project details

{ saving = true; error = null; return async ({ result, update }) => { if (result.type === 'success') { // The refresh carries the new values to the card before the dialog // closes, and `reset: false` keeps the typed words if it fails. await update({ reset: false }); close(); return; } saving = false; if (result.type === 'failure') { // The page's notice reads `message`, so value refusals travel under // `details` and are not said twice. A guard refusal has only `message`, // and the notice behind the dialog cannot be read, so it shows here. const data = result.data as { details?: unknown; message?: unknown } | undefined; const said = typeof data?.details === 'string' ? data.details : data?.message; error = typeof said === 'string' ? said : 'The details did not save.'; return; } if (result.type === 'error') { error = 'The details did not save. Check the connection and try again.'; } }; }} >

A line under the title on the library card.

Printed on the Word manuscript and the EPUB.

A sentence or two about the project, shown on its card.

Card colour {#each accents as accent (accent.value)} {/each}
{#if error}

{error}

{/if}