Merge pull request #5691 from tsiegleauq/fix-remove-all-speakers

Fix "remove all speaker" button
This commit is contained in:
Sean 2020-11-10 12:08:30 +01:00 committed by GitHub
commit dd3dbea482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,13 +151,12 @@ export class ListOfSpeakersContentComponent extends BaseViewComponentDirective i
} }
private isListOfSpeakersEmpty(): void { private isListOfSpeakersEmpty(): void {
if (this.waitingSpeakers && this.waitingSpeakers.length) { if (this.waitingSpeakers?.length || this.finishedSpeakers?.length) {
this.isListOfSpeakersEmptyEvent.emit(false); this.isListOfSpeakersEmptyEvent.emit(false);
} else if (this.finishedSpeakers && this.finishedSpeakers.length) { } else {
this.isListOfSpeakersEmptyEvent.emit(false);
}
return this.isListOfSpeakersEmptyEvent.emit(!this.activeSpeaker); return this.isListOfSpeakersEmptyEvent.emit(!this.activeSpeaker);
} }
}
private updateCanReaddLastSpeaker(): void { private updateCanReaddLastSpeaker(): void {
let canReaddLast; let canReaddLast;