@@ -275,7 +275,7 @@ function getDeviceData() {
275275 const fieldName = setting.setKey.replace('NEWDEV_', '');
276276 if (trackedFields[fieldName] && mac != "new") {
277277 const sourceField = fieldName + "Source";
278- const currentSource = deviceData[sourceField] || "";
278+ const currentSource = deviceData[sourceField] || "UNKNOWN ";
279279 const isLocked = currentSource === "LOCKED";
280280 const lockIcon = isLocked ? "fa-lock" : "fa-lock-open";
281281 const lockTitle = isLocked ? getString("FieldLock_Unlock_Tooltip") : getString("FieldLock_Lock_Tooltip");
@@ -292,7 +292,7 @@ function getDeviceData() {
292292 const fieldName2 = setting.setKey.replace('NEWDEV_', '');
293293 if (trackedFields[fieldName2] && mac != "new") {
294294 const sourceField = fieldName2 + "Source";
295- const currentSource = deviceData[sourceField] || "NEWDEV ";
295+ const currentSource = deviceData[sourceField] || "UNKNOWN ";
296296 const sourceTitle = getString("FieldLock_Source_Label") + currentSource;
297297 const sourceColor = currentSource === "USER" ? "text-warning" : (currentSource === "LOCKED" ? "text-danger" : "text-muted");
298298 inlineControl += `<span class="input-group-addon pointer ${sourceColor}" title="${sourceTitle}">
@@ -561,7 +561,7 @@ function toggleFieldLock(mac, fieldName) {
561561
562562 // Get current source value
563563 const sourceField = fieldName + "Source";
564- const currentSource = deviceData[sourceField] || "NEWDEV ";
564+ const currentSource = deviceData[sourceField] || "UNKNOWN ";
565565 const shouldLock = currentSource !== "LOCKED";
566566
567567 const payload = {
@@ -600,7 +600,7 @@ function toggleFieldLock(mac, fieldName) {
600600 // Update source indicator
601601 const sourceIndicator = lockBtn.next();
602602 if (sourceIndicator.hasClass("input-group-addon")) {
603- const sourceValue = shouldLock ? "LOCKED" : "NEWDEV ";
603+ const sourceValue = shouldLock ? "LOCKED" : "UNKNOWN ";
604604 const sourceClass = shouldLock ? "input-group-addon text-danger" : "input-group-addon text-muted";
605605 sourceIndicator.text(sourceValue);
606606 sourceIndicator.attr("class", sourceClass);
0 commit comments