Skip to content

Commit

Permalink
Fix network panel of configurator having one interface selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Rigby committed Jul 18, 2019
1 parent ea31b64 commit 4789197
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -32,7 +32,6 @@ erl_crash.dump


# From other branches # From other branches
/cache /cache
*.js
/release-* /release-*
/node_modules /node_modules
scratchpad.* scratchpad.*
Expand Down
1 change: 1 addition & 0 deletions farmbot_os/priv/static/.gitignore
Expand Up @@ -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
4 changes: 4 additions & 0 deletions farmbot_os/priv/static/security_icon_lookup.js
@@ -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";
2 changes: 1 addition & 1 deletion farmbot_os/priv/static/templates/network.html.eex
Expand Up @@ -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"%>'/>
Expand Down

0 comments on commit 4789197

Please sign in to comment.