Merge pull request #4479 from FinnStutzenstein/losSpeakerCount
(current) list of speakers: show amount of waiting speakers
This commit is contained in:
commit
f4b798d6a2
@ -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">
|
||||
– {{ getSpeakersCount() }} <span translate>Speakers</span>
|
||||
</span>
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<!-- Last speakers -->
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user