formatted manage_data page and added new style, fix for #3536, #3537, #3538, #3539

This commit is contained in:
gabryon99 2020-03-10 22:34:51 +01:00
parent f1eb9d1c1a
commit 4c692e2c6e
5 changed files with 189 additions and 220 deletions

View file

@ -466,12 +466,11 @@ function delete_data_utils.delete_active_interface_data_requested(if_name)
if not isEmptyString(if_name) then
-- Check if a delete has been requested for a particular interface
local if_id = getInterfaceId(if_name)
if tonumber(if_id) >= 0 then
local req = ntop.getHashCache(ACTIVE_INTERFACES_DELETE_HASH, tostring(if_id))
if not isEmptyString(req) then
return true
end
if tonumber(if_id) >= -1 then
local req = ntop.getHashCache(ACTIVE_INTERFACES_DELETE_HASH, tostring(if_id))
if not isEmptyString(req) then
return true
end
end
else
-- Check if there's at least a data delete request