diff --git a/webui/assets/script.js b/webui/assets/script.js index 2b6ea22..d44b160 100644 --- a/webui/assets/script.js +++ b/webui/assets/script.js @@ -209,6 +209,7 @@ let statusInterval = null; async function checkScanStatus() { const statusBadge = document.getElementById("scan-status"); + const stopBtn = document.getElementById("stop-scan-btn"); if (!statusBadge) return; try { @@ -218,10 +219,12 @@ async function checkScanStatus() { if (result.running) { statusBadge.className = "status-badge status-running"; statusBadge.innerHTML = ' Scan Running'; + if (stopBtn) stopBtn.style.display = "inline-flex"; startStatusPolling(); } else { statusBadge.className = "status-badge status-idle"; statusBadge.textContent = "Idle"; + if (stopBtn) stopBtn.style.display = "none"; stopStatusPolling(); } } catch (error) { diff --git a/webui/index.php b/webui/index.php index fd195fb..d851d8e 100644 --- a/webui/index.php +++ b/webui/index.php @@ -1,5 +1,6 @@ +
@@ -7,14 +8,18 @@ +Attack Surface Management Platform
-