mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-03 00:31:35 -07:00
feat: authoritative plugin fields
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -276,9 +276,9 @@ function getDeviceData() {
|
||||
fieldData = localizeTimestamp(fieldData)
|
||||
}
|
||||
|
||||
// Add lock/unlock button for tracked fields (not for new devices)
|
||||
// Add lock/unlock icon button for tracked fields (not for new devices)
|
||||
const fieldName = setting.setKey.replace('NEWDEV_', '');
|
||||
if (trackedFields[fieldName] && fieldName !== "devFQDN" && mac != "new") {
|
||||
if (trackedFields[fieldName] && fieldName !== "devFQDN" && fieldName !== "devMac" && mac != "new") {
|
||||
const sourceField = fieldName + "Source";
|
||||
|
||||
const currentSource = deviceData[sourceField] || "N/A";
|
||||
|
||||
Reference in New Issue
Block a user