Fixes assets inventory preference not working

This commit is contained in:
Matteo Biscosi 2025-12-23 10:48:01 +01:00
parent 03097a18c2
commit 1284428368
7 changed files with 86 additions and 22 deletions

View file

@ -1310,6 +1310,18 @@ if auth.has_capability(auth.capabilities.preferences) then
-- ######################
print('<thead class="table-primary"><tr><th colspan=2 class="info">' .. i18n("assets") ..
'</th></tr></thead>')
-- Assets
prefsToggleButton(subpage_active, {
field = "toggle_assets_inventory",
default = "1",
pref = "toggle_asset_inventory"
})
-- ######################
print('<thead class="table-primary"><tr><th colspan=2 class="info">' .. i18n("prefs.service_map") ..
'</th></tr></thead>')
-- Behavior analysis for asn, network and l7proto (iface)