mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Fix tab being hidden after deleting all the alerts when a filter is set
This commit is contained in:
parent
2b5da87dff
commit
06872bd949
1 changed files with 7 additions and 0 deletions
|
|
@ -881,6 +881,13 @@ function checkDeleteStoredAlerts()
|
|||
_GET["row_id"] = nil
|
||||
-- in case of delete "older than" button, resets the time period after the delete took place
|
||||
if isEmptyString(_GET["period_begin"]) then _GET["period_end"] = nil end
|
||||
|
||||
local new_num = getNumAlerts(_GET["status"], _GET)
|
||||
if new_num == 0 then
|
||||
-- reset the filter to avoid hiding the tab
|
||||
_GET["alert_severity"] = nil
|
||||
_GET["alert_type"] = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue