refator_comm1

This commit is contained in:
Mateusz Gruszczyński
2025-10-18 23:05:03 +02:00
parent 3dd0131088
commit e73298d9bc

View File

@@ -148,7 +148,7 @@ export async function startAdminWatches() {
status: safe(vm.status || '—')
}));
const html = rows.map(r => rowHTML([
const htmlRows = rows.map(r => rowHTML([
`<input type="checkbox" class="row-check">`,
safe(r.sid),
safe(r.name),
@@ -160,9 +160,9 @@ export async function startAdminWatches() {
<button class="btn btn-sm btn-outline-secondary act-shutdown">Shutdown</button>
<button class="btn btn-sm btn-outline-danger act-stop">Stop</button>
</div>`
])).join('');
]));
setRows(tbody, html);
setRows(tbody, htmlRows);
// wire node selects and actions
Array.from(tbody.querySelectorAll('tr[data-sid]')).forEach(tr => {