Fix "remove all speaker" button

Remove all speakers was always deactivated
This commit is contained in:
Sean 2020-11-09 16:18:26 +01:00
parent 7b0f8e3c25
commit be0deefdce

View File

@ -151,12 +151,11 @@ 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);
} else if (this.finishedSpeakers && this.finishedSpeakers.length) {
this.isListOfSpeakersEmptyEvent.emit(false); this.isListOfSpeakersEmptyEvent.emit(false);
} else {
return this.isListOfSpeakersEmptyEvent.emit(!this.activeSpeaker);
} }
return this.isListOfSpeakersEmptyEvent.emit(!this.activeSpeaker);
} }
private updateCanReaddLastSpeaker(): void { private updateCanReaddLastSpeaker(): void {