fix: add Clear button to all session entries — resumable ones get Resume + Clear, stale get Clear only
This commit is contained in:
parent
6445d8894a
commit
41059b128d
1 changed files with 1 additions and 2 deletions
|
|
@ -111,9 +111,8 @@ async function loadSessions() {
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
if (s.resumable) {
|
if (s.resumable) {
|
||||||
html += '<button class="pve-btn pve-btn-primary pve-btn-small" onclick="resumeSession(\'' + s.session_id + '\', \'' + firstFile.replace(/'/g, "\\'") + '\')">Resume</button>';
|
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>';
|
html += '</div>';
|
||||||
}
|
}
|
||||||
list.innerHTML = html;
|
list.innerHTML = html;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue