]> git.giorgioravera.it Git - network-manager.git/commitdiff
Added two buttons for dhcp and dns reload
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 24 Jan 2026 16:00:33 +0000 (17:00 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 24 Jan 2026 16:00:33 +0000 (17:00 +0100)
frontend/css/hosts.css
frontend/hosts.html
frontend/js/hosts.js

index 9435d17489b3df9a53f7990be101ef866b51c73d..cd997c09519e7d861457f59bc17e60c56d5062b6 100644 (file)
@@ -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;
index c8350a6a7677d81ff153db66868def983b424d62..aab6edc1832b2ebb01af4c57776a0a15d3b1ce84 100644 (file)
             class="search-bar"
         />
 
-        <button class="btn-primary" onclick="openAddHostModal()">
+        <button class="btn-primary" title="Add Host" aria-label="Add Host" onclick="openAddHostModal()">
             + Add Host
         </button>
 
+        <button class="btn-primary" title="Reload DNS (BIND)" aria-label="Reload DNS" onclick="reloadDNS()">
+            ↻ Reload DNS
+        </button>
+
+        <button class="btn-primary" title="Reload DHCP (Kea)" aria-label="Reload DHCP" onclick="reloadDHCP()">
+            ↻ Reload DHCP
+        </button>
     </div>
 </section>
 
@@ -58,7 +65,7 @@
             <th data-type="mac" onclick="sortTable(3)">MAC <span class="sort-arrow" aria-hidden="true"></span></th>
             <th data-type="string" onclick="sortTable(4)">Note <span class="sort-arrow" aria-hidden="true"></span></th>
             <th data-type="string" onclick="sortTable(5)">SSL <span class="sort-arrow" aria-hidden="true"></span></th>
-            <th>Actions</th>
+            <th data-type="string"> Actions<span class="sort-arrow" aria-hidden="true"></span></th>
         </tr>
     </thead>
     <tbody></tbody>
index 4c14165426f4a8d0609d642111264b8bfa250b3d..aa757e0c01ebf84b2a5c398e478d85848ebbcb6e 100644 (file)
@@ -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
 // -----------------------------