Hides historical flow link from timeseries page (#8335)

This commit is contained in:
Matteo Biscosi 2024-05-02 10:06:24 -04:00
parent 7a047dfd75
commit 55bfc7c19f
3 changed files with 5 additions and 2 deletions

View file

@ -7421,6 +7421,7 @@ local lang = {
["interfaces_with_discards"] = "Interfaces With Discards",
["interfaces_with_errors"] = "Interfaces With Errors",
["interfaces_with_errors_or_discards"] = "Interfaces With Errors/Discards",
["interface_similarity"] = "Interface Similarity",
["last_change"] = "Last Change",
["last_value_downlink"] = "Last Value Downlink (In)",
["last_value_uplink"] = "Last Value Uplink (Out)",
@ -7456,6 +7457,7 @@ local lang = {
["port_macs_short"] = "MACs",
["privacy_passphrase"] = "Privacy PassPhrase",
["privacy_protocol"] = "Privacy Protocol",
["printer"] = "Printer",
["prune_unresponsive_snmp_devices"] = "Remove Unresponsive SNMP Devices",
["prune_unresponsive_snmp_devices_confirm"] = "Do you really want to delete all unresponsive SNMP devices?",
["remove_all_snmp_devices"] = "Remove All SNMP Devices",
@ -7526,6 +7528,7 @@ local lang = {
["testing"] = "Testing",
["top"] = "Top",
["top_congested_devices"] = "Top Congested Interfaces",
["topology_map"] = "Topology Map",
["tp_fbd_status_invalid"] = "invalid",
["tp_fbd_status_learned"] = "learned",
["tp_fbd_status_mgmt"] = "mgmt",

View file

@ -595,7 +595,7 @@ else
label = "<i class=\"fas fa-lg fa-concierge-bell\" title='" .. i18n("service_map") .. "'\"></i>",
url = service_map_link
}, {
hidden = not prefs.is_dump_flows_to_clickhouse_enabled,
hidden = not prefs.is_dump_flows_to_clickhouse_enabled or page == "historical",
active = page == "db_search",
page_name = "db_search",
label = "<i class=\"fas fa-search-plus\" title='" .. i18n("db_explorer.historical_data_explorer") .. "'\"></i>",

View file

@ -144,7 +144,7 @@ page_utils.print_navbar(title, url,
label = "<i class='fas fa-lg fa-chart-area'></i>",
},
{
hidden = not prefs.is_dump_flows_to_clickhouse_enabled,
hidden = not prefs.is_dump_flows_to_clickhouse_enabled or page == "historical",
active = page == "db_search",
page_name = "db_search",
label = "<i class=\"fas fa-search-plus\" title='" .. i18n("db_explorer.historical_data_explorer") .. "'\"></i>",