diff --git a/src/lib/views/TranscriptNotes.svelte b/src/lib/views/TranscriptNotes.svelte index 7ac2178..3f5c5f5 100644 --- a/src/lib/views/TranscriptNotes.svelte +++ b/src/lib/views/TranscriptNotes.svelte @@ -43,6 +43,19 @@ } }); + // Recordings default to "Untitled meeting" (T2.2) — this is the only + // rename affordance, since nothing else in the UI shows the title at all. + async function onTitleChange(e: Event) { + const m = meetings.selected; + const value = (e.target as HTMLInputElement).value.trim(); + if (!m) return; + if (!value) { + (e.target as HTMLInputElement).value = m.title; // revert an empty edit + return; + } + if (value !== m.title) await meetings.renameMeeting(m.id, value); + } + function scheduleSave() { const id = meetings.selected?.id; if (!id) return; @@ -128,6 +141,12 @@