Added observation points remove button

This commit is contained in:
MatteoBiscosi 2021-11-29 15:30:50 +01:00
parent 4b48ca635c
commit 7321ee4c96
9 changed files with 142 additions and 119 deletions

View file

@ -4888,6 +4888,10 @@ function get_html_color(index)
end
function add_historical_flow_explorer_button_ref(extra_params)
if (ntop.getPrefs()["is_dump_flows_to_clickhouse_enabled"]) == false then
return ''
end
local base_url = ntop.getHttpPrefix() .. "/lua/pro/db_search.lua?"
for k, v in pairs(extra_params) do
@ -4899,6 +4903,15 @@ function add_historical_flow_explorer_button_ref(extra_params)
return button
end
function add_delete_obs_point_button()
local button = ''
if isAdministrator() then
button = '<a href="#delete_obs_point_stats" data-placement="bottom" data-bs-toggle="modal" class="btn btn-sm btn-danger" title="Remove"><i class="fas fa fa-trash"></i></a>'
end
return button
end
--
-- IMPORTANT
-- Leave it at the end so it can use the functions