mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Sort pool dropdown
This commit is contained in:
parent
205a4b0fbf
commit
e47c973d04
1 changed files with 3 additions and 1 deletions
|
|
@ -529,7 +529,9 @@ function graph_utils.poolDropdown(ifId, pool_id, exclude)
|
|||
local output = {}
|
||||
exclude = exclude or {}
|
||||
|
||||
for _, pool in ipairs(host_pools_instance:get_all_pools()) do
|
||||
local pools_list = host_pools_instance:get_all_pools()
|
||||
|
||||
for _, pool in pairsByField(pools_list, 'name', asc) do
|
||||
pool.pool_id = tostring(pool.pool_id)
|
||||
|
||||
if (not exclude[pool.pool_id]) or (pool.pool_id == pool_id) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue