fix: add Clear button to all session entries — resumable ones get Resume + Clear, stale get Clear only

This commit is contained in:
Claus Lohmar 2026-07-27 10:44:04 +00:00
parent 6445d8894a
commit 41059b128d

View file

@ -111,9 +111,8 @@ async function loadSessions() {
html += '</div>';
if (s.resumable) {
html += '<button class="pve-btn pve-btn-primary pve-btn-small" onclick="resumeSession(\'' + s.session_id + '\', \'' + firstFile.replace(/'/g, "\\'") + '\')">Resume</button>';
} else {
html += '<button class="pve-btn pve-btn-small" onclick="cleanupSession(\'' + s.session_id + '\', this)">Clean Up</button>';
}
html += '<button class="pve-btn pve-btn-small" onclick="cleanupSession(\'' + s.session_id + '\', this)" style="margin-left:0.3rem;color:var(--pve-red);border-color:var(--pve-red);">Clear</button>';
html += '</div>';
}
list.innerHTML = html;