Skip to content

Commit

Permalink
Init moderator notes form part on toggle edit (#3193)
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl authored and bastianjoel committed Jan 24, 2024
1 parent 4abb50c commit 440f3fb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ export class ListOfSpeakersContentComponent extends BaseMeetingComponent impleme
.pipe(map(item => item?.moderator_notes));
}

private get moderatorNotesForForm(): string {
return this.agendaItemRepo.getViewModel(this._contentObject?.getModel().agenda_item_id).moderator_notes;
}

public get closed(): boolean {
return this._listOfSpeakers?.closed || false;
}
Expand Down Expand Up @@ -707,6 +711,9 @@ export class ListOfSpeakersContentComponent extends BaseMeetingComponent impleme

public toggleEditModeratorNote(): void {
this.isEditing = !this.isEditing;
if (this.isEditing && !!this.moderatorNotesForForm) {
this.moderatorNoteForm.setValue({ moderator_notes: this.moderatorNotesForForm });
}
}

public saveChangesModerationNote(): void {
Expand Down

0 comments on commit 440f3fb

Please sign in to comment.