Show number of participants in sidebar

This commit is contained in:
JC Brand 2022-04-20 09:59:57 +02:00
parent 995cc51f99
commit fb158e418b

View File

@ -4,11 +4,11 @@ import tpl_occupant from "./occupant.js";
export default (o) => {
const i18n_participants = __('Participants');
const i18n_participants = o.occupants.length === 1 ? __('Participant') : __('Participants');
return html`
<div class="occupants-header">
<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}>
<converse-icon class="fa fa-times" size="1em"></converse-icon>
</i>