Add datetime picker in as graph page (when type=historical)

This commit is contained in:
Alfredo Cardigliano 2025-07-21 11:38:11 +02:00
parent b7d1e0718f
commit bf8cebdb0c
2 changed files with 44 additions and 5 deletions

View file

@ -15,6 +15,7 @@ local asn = _GET["asn"]
local criteria_as = _GET["criteria_as"]
local tableId = "ingress_egress_as_stats"
local page = _GET["page"]
local content_type = _GET["type"]
if (not criteria_as) or (criteria_as == "ingress_egress_traffic_criteria") then
tableId = "ingress_egress_as_stats"
@ -61,7 +62,8 @@ if page == "overview" or not page then
csrf = ntop.getRandomCSRFValue(),
ifid = interface.getId(),
isEnterpriseL = ntop.isEnterpriseL(),
tableId = tableId
tableId = tableId,
historical = content_type and content_type == "historical"
})
})
else