refator_comm1
This commit is contained in:
@@ -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 => {
|
||||
|
Reference in New Issue
Block a user