mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added observation points remove button
This commit is contained in:
parent
4b48ca635c
commit
7321ee4c96
9 changed files with 142 additions and 119 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue