Skip to content
Permalink
Browse files

Fix network panel of configurator having one interface selected

  • Loading branch information...
ConnorRigby committed Jul 18, 2019
1 parent ea31b64 commit 478919795a6f9e35d3a8cf0f39cf7d443b56fc2a
@@ -32,7 +32,6 @@ erl_crash.dump

# From other branches
/cache
*.js
/release-*
/node_modules
scratchpad.*
@@ -10,5 +10,6 @@
!favicon.ico
*.fw
!signal_table.js
!security_icon_lookup.js
!*.svg
!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 %>

<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">
<img src='<%= if String.contains?(to_string(ifname), "w"), do: "icon_wifi.svg", else: "icon_ethernet.svg"%>'/>

0 comments on commit 4789197

Please sign in to comment.
You can’t perform that action at this time.