mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-03 08:41:35 -07:00
FE+BE+DOCS: lock fields, devVlan not saveable
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -440,6 +440,7 @@ function setDeviceData(direction = '', refreshCallback = '') {
|
||||
|
||||
devSSID: $('#NEWDEV_devSSID').val(),
|
||||
devSite: $('#NEWDEV_devSite').val(),
|
||||
devVlan: $('#NEWDEV_devVlan').val(),
|
||||
|
||||
devStaticIP: ($('#NEWDEV_devStaticIP')[0].checked * 1),
|
||||
devScan: 1,
|
||||
@@ -580,6 +581,12 @@ function toggleFieldLock(mac, fieldName) {
|
||||
const currentSource = deviceData[sourceField] || "N/A";
|
||||
const shouldLock = currentSource !== "LOCKED";
|
||||
|
||||
if(shouldLock && somethingChanged)
|
||||
{
|
||||
showMessage(getString("FieldLock_SaveBeforeLocking"), 5000, "modal_red");
|
||||
return;
|
||||
}
|
||||
|
||||
const payload = {
|
||||
fieldName: fieldName,
|
||||
lock: shouldLock ? 1 : 0
|
||||
|
||||
Reference in New Issue
Block a user