feat(meetings): add renameMeeting; refresh the list after attach/rename
attachEvent and renameMeeting can both change a meeting's title now, so both refresh the list (not just the selected-detail view) to keep the sidebar in sync.
This commit is contained in:
1 parent
f9e75b7d17
commit
3cd267f737
1 file changed
+10
@@ -224,7 +224,17 @@ class MeetingsStore {
|
||||
/** Link a recording to a calendar event (T6.3/T6.6, FR-CAL-2/4). */
|
||||
async attachEvent(id: MeetingId, eventId: string) {
|
||||
await api.attachMeetingToEvent(id, eventId);
|
||||
// Attaching mirrors the event's subject onto the title server-side
|
||||
// (FR-CAL-2) — refresh the list too, not just the detail view.
|
||||
if (this.selectedId === id) await this.select(id);
|
||||
await this.load();
|
||||
}
|
||||
|
||||
/** Manual rename (T2.2) — recordings otherwise default to "Untitled meeting". */
|
||||
async renameMeeting(id: MeetingId, title: string) {
|
||||
await api.renameMeeting(id, title);
|
||||
if (this.selectedId === id) await this.select(id);
|
||||
await this.load();
|
||||
}
|
||||
|
||||
/** Free-text speaker rename (T4.4, FR-SPK-2) — the "add new name" escape
|
||||
|
||||
Reference in new issue
Block a user