refactor #1

Merged
gru merged 28 commits from refactor into master 2025-10-19 00:06:44 +02:00
Showing only changes of commit e73298d9bc - Show all commits

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 => {