fix(ui): Enter in CIDR field runs create scan and wait
Made-with: Cursor
This commit is contained in:
@@ -1335,6 +1335,11 @@
|
||||
if (ev.key === "Enter") runMacSearch();
|
||||
});
|
||||
createScanBtn.addEventListener("click", createScan);
|
||||
cidrInput?.addEventListener("keydown", (ev) => {
|
||||
if (ev.key !== "Enter") return;
|
||||
ev.preventDefault();
|
||||
createScan();
|
||||
});
|
||||
document.getElementById("purgeDbBtn")?.addEventListener("click", async () => {
|
||||
const inp = document.getElementById("purgeSecretInput");
|
||||
const secret = (inp && inp.value.trim()) || "";
|
||||
|
||||
Reference in New Issue
Block a user