Merge pull request #4479 from FinnStutzenstein/losSpeakerCount

(current) list of speakers: show amount of waiting speakers
This commit is contained in:
Emanuel Schütze 2019-03-09 21:54:59 +01:00 committed by GitHub
commit f4b798d6a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -1,7 +1,12 @@
<div *ngIf="data">
<div class="slidetitle">
<h1 translate>List of speakers</h1>
<h2>{{ getTitle() }}</h2>
<h2>
{{ getTitle() }}
<span *ngIf="getSpeakersCount() > 0">
&ndash; {{ getSpeakersCount() }} <span translate>Speakers</span>
</span>
</h2>
</div>
<!-- Last speakers -->

View File

@ -29,4 +29,14 @@ export class CommonListOfSpeakersSlideComponent extends BaseSlideComponent<Commo
throw new Error('The content object has no agenda base repository!');
}
}
/**
* @retuns the amount of waiting speakers
*/
public getSpeakersCount(): number {
if (this.data && this.data.data.waiting) {
return this.data.data.waiting.length;
}
return 0;
}
}