Sfoglia il codice sorgente

fix(ui): remove duplicate catch blocks and bump cache version to fix menu interactivity

Proxmox Router 1 settimana fa
parent
commit
19ce40681f
2 ha cambiato i file con 1 aggiunte e 20 eliminazioni
  1. 0 19
      internal/web/static/app.js
  2. 1 1
      internal/web/static/index.html

+ 0 - 19
internal/web/static/app.js

@@ -2207,10 +2207,6 @@ async function loadFirewall(populateDropdowns = true) {
     console.error('Failed to load firewall:', err);
   }
 }
-  } catch (err) {
-    console.error('Failed to load firewall:', err);
-  }
-}
 
 // ----------------- Filter Rules -----------------
 function renderFilterRules() {
@@ -2677,21 +2673,6 @@ async function submitSaveNATRule(e) {
         comment,
         disabled
       })
-    });
-        id,
-        chain,
-        action,
-        to_addresses: toaddr,
-        to_ports: toport,
-        protocol: proto,
-        src_address: src,
-        dst_address: dst,
-        dst_port: dport,
-        in_interface: inIface,
-        out_interface: outIface,
-        comment,
-        disabled
-      })
     });
     if (res.ok) {
       showToast('NAT Rule Saved', 'NAT mapping updated', 'success');

+ 1 - 1
internal/web/static/index.html

@@ -3691,6 +3691,6 @@
     </div>
   </div>
 
-  <script src="app.js?v=2.6"></script>
+  <script src="app.js?v=2.7"></script>
 </body>
 </html>