mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Use new user scripts config and gui
The user scripts configuration can now be configured from the "User Scripts" entry under the cog icon. It allows the creation of multiple configuration presets to be applied to hosts, networks and interfaces.
This commit is contained in:
parent
538ebc741a
commit
d037f9a9a4
18 changed files with 533 additions and 542 deletions
|
|
@ -293,12 +293,6 @@ local title = i18n("interface") .. ": " .. short_name
|
|||
page_name = "config",
|
||||
label = "<i class=\"fas fa-lg fa-cog\"></i></a></li>",
|
||||
},
|
||||
{
|
||||
hidden = not isAdministrator() or is_pcap_dump,
|
||||
active = page == "callbacks",
|
||||
page_name = "callbacks",
|
||||
label = "<i class=\"fab fa-lg fa-superpowers\"></i>",
|
||||
},
|
||||
{
|
||||
active = page == "internals",
|
||||
page_name = "internals",
|
||||
|
|
@ -1814,16 +1808,6 @@ elseif(page == "config") then
|
|||
aysHandleForm("#iface_config");
|
||||
</script>]]
|
||||
|
||||
elseif(page == "callbacks") then
|
||||
if(not isAdministrator()) then
|
||||
return
|
||||
end
|
||||
|
||||
local alias = getHumanReadableInterfaceName(if_name)
|
||||
|
||||
drawAlertSourceSettings("interface", ifname_clean,
|
||||
i18n("show_alerts.iface_delete_config_btn", {iface=alias}), "show_alerts.iface_delete_config_confirm",
|
||||
"if_stats.lua", {ifid=ifid}, alias, "interface")
|
||||
elseif(page == "internals") then
|
||||
internals_utils.printInternals(ifid)
|
||||
print [[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue