Show number of participants in sidebar
This commit is contained in:
parent
995cc51f99
commit
fb158e418b
@ -4,11 +4,11 @@ import tpl_occupant from "./occupant.js";
|
|||||||
|
|
||||||
|
|
||||||
export default (o) => {
|
export default (o) => {
|
||||||
const i18n_participants = __('Participants');
|
const i18n_participants = o.occupants.length === 1 ? __('Participant') : __('Participants');
|
||||||
return html`
|
return html`
|
||||||
<div class="occupants-header">
|
<div class="occupants-header">
|
||||||
<div class="occupants-header--title">
|
<div class="occupants-header--title">
|
||||||
<span class="occupants-heading">${i18n_participants}</span>
|
<span class="occupants-heading">${o.occupants.length} ${i18n_participants}</span>
|
||||||
<i class="hide-occupants" @click=${o.closeSidebar}>
|
<i class="hide-occupants" @click=${o.closeSidebar}>
|
||||||
<converse-icon class="fa fa-times" size="1em"></converse-icon>
|
<converse-icon class="fa fa-times" size="1em"></converse-icon>
|
||||||
</i>
|
</i>
|
||||||
|
Loading…
Reference in New Issue
Block a user