Fix network panel of configurator having one interface selected
parent
4d163b4ac7
commit
256899b3da
|
@ -32,7 +32,6 @@ erl_crash.dump
|
||||||
|
|
||||||
# From other branches
|
# From other branches
|
||||||
/cache
|
/cache
|
||||||
*.js
|
|
||||||
/release-*
|
/release-*
|
||||||
/node_modules
|
/node_modules
|
||||||
scratchpad.*
|
scratchpad.*
|
||||||
|
|
|
@ -10,5 +10,6 @@
|
||||||
!favicon.ico
|
!favicon.ico
|
||||||
*.fw
|
*.fw
|
||||||
!signal_table.js
|
!signal_table.js
|
||||||
|
!security_icon_lookup.js
|
||||||
!*.svg
|
!*.svg
|
||||||
!templates/*.html.eex
|
!templates/*.html.eex
|
|
@ -0,0 +1,4 @@
|
||||||
|
var security_icon_lookup = {};
|
||||||
|
security_icon_lookup["NONE"] = "icon_none.svg";
|
||||||
|
security_icon_lookup["WPA-PSK"] = "icon_lock.svg";
|
||||||
|
security_icon_lookup["WPA-EAP"] = "icon_key.svg";
|
|
@ -30,7 +30,7 @@
|
||||||
<%= for {ifname, settings} <- interfaces do %>
|
<%= for {ifname, settings} <- interfaces do %>
|
||||||
|
|
||||||
<label class="connection-type no-pad" for='<%= ifname %>'>
|
<label class="connection-type no-pad" for='<%= ifname %>'>
|
||||||
<input type="radio" id='<%= ifname %>' name="interfaceRadio" checked="false" onclick="select_interface()"/>
|
<input type="radio" id='<%= ifname %>' name="interfaceRadio" onclick="select_interface()"/>
|
||||||
|
|
||||||
<div class="connection-type-box">
|
<div class="connection-type-box">
|
||||||
<img src='<%= if String.contains?(to_string(ifname), "w"), do: "icon_wifi.svg", else: "icon_ethernet.svg"%>'/>
|
<img src='<%= if String.contains?(to_string(ifname), "w"), do: "icon_wifi.svg", else: "icon_ethernet.svg"%>'/>
|
||||||
|
|
Loading…
Reference in New Issue