(current) list of speakers: show amount of waiting speakers
This commit is contained in:
parent
83ff758977
commit
f60e66c1a8
@ -1,7 +1,12 @@
|
|||||||
<div *ngIf="data">
|
<div *ngIf="data">
|
||||||
<div class="slidetitle">
|
<div class="slidetitle">
|
||||||
<h1 translate>List of speakers</h1>
|
<h1 translate>List of speakers</h1>
|
||||||
<h2>{{ getTitle() }}</h2>
|
<h2>
|
||||||
|
{{ getTitle() }}
|
||||||
|
<span *ngIf="getSpeakersCount() > 0">
|
||||||
|
– {{ getSpeakersCount() }} <span translate>Speakers</span>
|
||||||
|
</span>
|
||||||
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Last speakers -->
|
<!-- Last speakers -->
|
||||||
|
@ -29,4 +29,14 @@ export class CommonListOfSpeakersSlideComponent extends BaseSlideComponent<Commo
|
|||||||
throw new Error('The content object has no agenda base repository!');
|
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