0.7.0: after_action setting (stay on page with job status vs jump to log), settings UI

This commit is contained in:
Claw committed 2026-11-17 21:00:47 +01:00
1 parent 642a11f505
commit cbf899b94b
6 files changed
+110 -5

No files matched your search

+10 -1
View File
@@ -18,10 +18,15 @@ if (strtoupper((string)($_SERVER['REQUEST_METHOD'] ?? '')) === 'POST' && isset($
exit;
}
$job = vmm_job_new($verb, $vmName);
header('Location: vmmngr_jobs.php?id=' . urlencode((string)$job['id']));
header('Location: ' . vmm_after_job_target((string)$job['id'], 'vmmngr.php'));
exit;
}
$activeJob = (string)($_GET['job'] ?? '');
if ($activeJob !== '' && vmm_job_running($activeJob)) {
header('Refresh: 3');
}
$conf = vmm_config();
$vmprov = vmm_resolve('vm');
$vms = $vmprov['available'] ? vmm_list() : [];
@@ -46,6 +51,10 @@ vmm_nav('dashboard');
<form action="vmmngr.php" method="post" name="iform" id="iform"><table id="area_data"><tbody><tr><td id="area_data_frame">
<?php if ($activeJob !== ''): ?>
<?=vmm_job_status_html($activeJob); ?>
<?php endif; ?>
<?php if (!empty($_SESSION['vmmngr_error'])): ?>
<?php print_info_box(vmm_h((string)$_SESSION['vmmngr_error'])); unset($_SESSION['vmmngr_error']); ?>
<?php endif; ?>