mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-31 07:12:23 -07:00
feat: authoritative plugin fields - fix devFQDN + docs + allow filters and columns on new fields
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -145,14 +145,18 @@ class NetAlertXStateManager {
|
||||
.attr('data-version', version);
|
||||
|
||||
// 3. Update Build Timestamp placeholders
|
||||
const buildTime = appState["buildTimestamp"] !== undefined ? appState["buildTimestamp"] : "";
|
||||
const displayTime = (buildTime === 0) ? "UNKNOWN" : buildTime;
|
||||
const buildTime = appState["buildTimestamp"] || 0;
|
||||
const displayTime = buildTime ? localizeTimestamp(buildTime) : "UNKNOWN";
|
||||
|
||||
$('[data-plc="build-timestamp"]')
|
||||
.html(displayTime)
|
||||
.attr('data-build-time', buildTime);
|
||||
|
||||
$('[data-plc="build-timestamp"]')
|
||||
.html(displayTime)
|
||||
.attr('data-build-time', buildTime);
|
||||
|
||||
console.log("[NetAlertX State] UI updated via jQuery");
|
||||
// console.log("[NetAlertX State] UI updated via jQuery");
|
||||
} catch (e) {
|
||||
console.error("[NetAlertX State] Failed to update state display:", e);
|
||||
}
|
||||
|
||||
@@ -668,7 +668,10 @@ function getColumnNameFromLangString(headStringKey) {
|
||||
"Device_TableHead_CustomProps": "devCustomProps",
|
||||
"Device_TableHead_FQDN": "devFQDN",
|
||||
"Device_TableHead_ParentRelType": "devParentRelType",
|
||||
"Device_TableHead_ReqNicsOnline": "devReqNicsOnline"
|
||||
"Device_TableHead_ReqNicsOnline": "devReqNicsOnline",
|
||||
"Device_TableHead_Vlan": "devVlan",
|
||||
"Device_TableHead_IPv4": "devPrimaryIPv4",
|
||||
"Device_TableHead_IPv6": "devPrimaryIPv6"
|
||||
};
|
||||
|
||||
return columnNameMap[headStringKey] || "";
|
||||
|
||||
Reference in New Issue
Block a user