Add attachEvent/renameSpeaker/mapSpeaker methods backing the new calendar UI
This commit is contained in:
1 parent
6d16e6707f
commit
f6be9645b8
1 file changed
+19
@@ -63,6 +63,25 @@ class MeetingsStore {
|
||||
await api.updateNotes(id, markdown);
|
||||
if (this.selected && this.selectedId === id) this.selected.notes_markdown = markdown;
|
||||
}
|
||||
|
||||
/** 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);
|
||||
if (this.selectedId === id) await this.select(id);
|
||||
}
|
||||
|
||||
/** Free-text speaker rename (T4.4, FR-SPK-2) — the "add new name" escape
|
||||
* hatch alongside the attendee dropdown (T6.5). */
|
||||
async renameSpeaker(id: MeetingId, label: string, name: string) {
|
||||
await api.renameSpeaker(id, label, name);
|
||||
if (this.selectedId === id) await this.select(id);
|
||||
}
|
||||
|
||||
/** Name a speaker from the linked event's attendee list (T6.5, FR-SPK-4). */
|
||||
async mapSpeaker(id: MeetingId, label: string, participantId: string) {
|
||||
await api.mapSpeakerToParticipant(id, label, participantId);
|
||||
if (this.selectedId === id) await this.select(id);
|
||||
}
|
||||
}
|
||||
|
||||
export const meetings = new MeetingsStore();
|
||||
Reference in new issue
Block a user