fix bug in netmap sidebar and better hiding for too_many_devices

This commit is contained in:
Oliver Gorwits
2023-11-12 07:30:23 +00:00
parent ac54635628
commit 0867417430
2 changed files with 6 additions and 2 deletions

View File

@@ -352,7 +352,7 @@ td > form.nd_inline-form {
} }
/* set default state of collapsible lists as collapsed (hidden) */ /* set default state of collapsible lists as collapsed (hidden) */
.nd_collapse-pre-hidden { .nd_collapse-pre-hidden, .nd_disabled-feature {
display: none; display: none;
} }

View File

@@ -60,7 +60,9 @@
<hr class="nd_sidebar-hr"/> <hr class="nd_sidebar-hr"/>
[% IF device_count < (vars.sidebar_defaults.device_netmap.too_many_devices || 1000) %] [% IF device_count > (vars.sidebar_defaults.device_netmap.too_many_devices || 1000) %]
<span class="nd_disabled-feature">
[% END %]
<div class="radio radio-success"> <div class="radio radio-success">
<input type="radio" name="mapshow" id="nd_mapshow-all" <input type="radio" name="mapshow" id="nd_mapshow-all"
[% 'checked' IF vars.sidebar_defaults.device_netmap.mapshow == 'all' %] value="all"> [% 'checked' IF vars.sidebar_defaults.device_netmap.mapshow == 'all' %] value="all">
@@ -79,6 +81,8 @@
value="[% params.depth || vars.sidebar_defaults.device_netmap.hops || 1 | html_entity %]"/> value="[% params.depth || vars.sidebar_defaults.device_netmap.hops || 1 | html_entity %]"/>
</label> </label>
</div> </div>
[% IF device_count > (vars.sidebar_defaults.device_netmap.too_many_devices || 1000) %]
</span>
[% END %] [% END %]
<label><span id="nd_vlan-label-text">Carrying VLAN: </span> <label><span id="nd_vlan-label-text">Carrying VLAN: </span>