fix: .panel container still visible when empty

This commit is contained in:
Nathan FONTEYNE 2026-07-15 17:53:01 +02:00
parent 6042d92f47
commit 0b4abe5b80
2 changed files with 4 additions and 1 deletions

View file

@ -454,6 +454,7 @@ function wireRehearsalActions(container) {
function renderRehearsals() {
const section = document.getElementById('rehearsals-section');
const title = document.getElementById('rehearsals-title');
const container = document.getElementById('rehearsals-list');
const votedSection = document.getElementById('rehearsals-voted-section');
const votedSummary = document.getElementById('rehearsals-voted-summary');
@ -472,6 +473,8 @@ function renderRehearsals() {
(r) => me && r.votes.some((v) => v.userId === me.id)
);
title.style.display = pending.length ? '' : 'none';
container.style.display = pending.length ? '' : 'none';
container.innerHTML = pending.map(rehearsalRowTemplate).join('');
wireRehearsalActions(container);