mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Add VLAN selector dropdown to VLAN configuration page
A new <select> element above the VLAN ID input lets users pick an existing VLAN by name instead of typing the ID. Options are loaded from /vlanlist on page load and re-loaded after successful Update/Create operations. Selection triggers the existing fetchVLAN() flow. Falls back gracefully if /vlanlist returns an empty list or fails: the dropdown is hidden and the existing ID input remains functional.
This commit is contained in:
1 parent
a5f77e4caf
commit
defb37c06a
3 files changed
+39
No files matched your search
@@ -28,6 +28,7 @@ async function vlanSub() {
|
||||
});
|
||||
console.log('Completed!', response);
|
||||
}
|
||||
loadVlanList();
|
||||
} catch(err) {
|
||||
console.error(`Error: ${err}`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user