vm management
This commit is contained in:
@@ -748,12 +748,9 @@ async function renderVMAdmin() {
|
||||
});
|
||||
} else {
|
||||
await vmAction(sid, action, needsTarget ? getTarget() : undefined);
|
||||
const exit = (finalSt && finalSt.exitstatus) ? String(finalSt.exitstatus) : '';
|
||||
const ok = exit.toUpperCase() === 'OK';
|
||||
const badgeCell = tr.children[4];
|
||||
if (badgeCell) badgeCell.innerHTML = ok ? badge('running', 'ok') : badge('migrate error', 'err');
|
||||
log.textContent += (log.textContent ? '\n' : '') + (ok ? 'Migration finished successfully.' : ('Migration failed: ' + (exit || 'unknown error')));
|
||||
showToast('Success', `${action} executed for ${sid}`, 'success');
|
||||
await doRefresh();
|
||||
setRowBusy(tr, false);
|
||||
}
|
||||
} catch (e) { showToast('Error', 'ERROR: ' + e.message, 'danger'); }
|
||||
btn.disabled = false;
|
||||
|
Reference in New Issue
Block a user