From 89741fbb3111a7d951b9d3387eb6c4835bf1a559 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Sat, 24 Jan 2026 17:00:33 +0100 Subject: [PATCH] Added two buttons for dhcp and dns reload --- frontend/css/hosts.css | 6 +++--- frontend/hosts.html | 11 +++++++++-- frontend/js/hosts.js | 16 ++++++++++++++++ 3 files changed, 28 insertions(+), 5 deletions(-) diff --git a/frontend/css/hosts.css b/frontend/css/hosts.css index 9435d17..cd997c0 100644 --- a/frontend/css/hosts.css +++ b/frontend/css/hosts.css @@ -1,5 +1,5 @@ /* ================================ - Action icons column (specific to hosts) + Action icons column ================================ */ td.actions { white-space: nowrap; @@ -21,7 +21,7 @@ td.actions { } /* ================================ - Search bar (specific to hosts) + Search bar ================================ */ .search-bar { width: 250px; @@ -32,7 +32,7 @@ td.actions { } /* ================================ - Sort arrows (specific to hosts) + Sort arrows ================================ */ .sort-arrow { display: inline-block; diff --git a/frontend/hosts.html b/frontend/hosts.html index c8350a6..aab6edc 100644 --- a/frontend/hosts.html +++ b/frontend/hosts.html @@ -42,10 +42,17 @@ class="search-bar" /> - + + + @@ -58,7 +65,7 @@ MAC Note SSL - Actions + Actions diff --git a/frontend/js/hosts.js b/frontend/js/hosts.js index 4c14165..aa757e0 100644 --- a/frontend/js/hosts.js +++ b/frontend/js/hosts.js @@ -548,6 +548,22 @@ function resetSorting() { lastSort = null; } +// ----------------------------- +// RELOAD DNS +// ----------------------------- +function reloadDNS() { + // Implement DNS reload logic here + showToast("DNS reloaded successfully"); +} + +// ----------------------------- +// RELOAD DHCP +// ----------------------------- +function reloadDHCP() { + // Implement DHCP reload logic here + showToast("DHCP reloaded successfully"); +} + // ----------------------------- // INITIAL TABLE LOAD // ----------------------------- -- 2.47.3