vm management

This commit is contained in:
Mateusz Gruszczyński
2025-10-17 16:42:19 +02:00
parent f3075ca5de
commit 050d7d34df
3 changed files with 6 additions and 16 deletions

View File

@@ -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;

View File

@@ -81,14 +81,7 @@ footer.site-footer a:hover {
max-width: 92vw;
}
.position-fixed.top-0.end-0.p-3 {
right: max(env(safe-area-inset-right), 1rem);
top: max(env(safe-area-inset-top), 1rem);
}
/* Toast container & toasts: keep inside viewport */
#toast-container {
width: min(480px, 96vw);
max-width: min(480px, 96vw);
@@ -101,7 +94,7 @@ footer.site-footer a:hover {
white-space: normal;
}
.position-fixed.top-0.end-0.p-3 {
right: 1rem;
top: 1rem;
.position-fixed.bottom-0.end-0.p-3 {
right: max(env(safe-area-inset-right), 1rem);
bottom: max(env(safe-area-inset-bottom), 1rem);
}