mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
Fixes observation point dropdown not ordered (#7036)
This commit is contained in:
parent
5ab6f0cc94
commit
fe4664135e
1 changed files with 2 additions and 1 deletions
|
|
@ -94,7 +94,8 @@
|
|||
<li class="nav-item d-sm-flex">
|
||||
<div class="d-flex">
|
||||
<select name="observationpoint-dropdown" id="observationpoint-dropdown" class="selectpicker form-select-lg pb-0" data-width="fit" data-live-search="true" data-live-search-placeholder="{{ i18n('search') }}" data-actions-box="true">
|
||||
{% for _, v in pairsByKeys(observationPoints, asc) do %}
|
||||
{% tprint(observationPoints)
|
||||
for _, v in pairsByField(observationPoints, 'obs_point', asc) do %}
|
||||
{% local selected = '' %}
|
||||
{% if((observationPointId ~= nil) and (tostring(v["obs_point"]) == tostring(observationPointId))) then selected = 'selected' end %}
|
||||
<option value="{{ v["obs_point"] }}" {{ selected }}>{{ getObsPointAlias(v["obs_point"], true) }}</option>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue