From 478919795a6f9e35d3a8cf0f39cf7d443b56fc2a Mon Sep 17 00:00:00 2001 From: Connor Rigby Date: Thu, 18 Jul 2019 09:14:46 -0700 Subject: [PATCH] Fix network panel of configurator having one interface selected --- .gitignore | 1 - farmbot_os/priv/static/.gitignore | 1 + farmbot_os/priv/static/security_icon_lookup.js | 4 ++++ farmbot_os/priv/static/templates/network.html.eex | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 farmbot_os/priv/static/security_icon_lookup.js diff --git a/.gitignore b/.gitignore index f0f6ee838..ed555aec4 100644 --- a/.gitignore +++ b/.gitignore @@ -32,7 +32,6 @@ erl_crash.dump # From other branches /cache -*.js /release-* /node_modules scratchpad.* diff --git a/farmbot_os/priv/static/.gitignore b/farmbot_os/priv/static/.gitignore index 1e4822831..3d9c8a770 100644 --- a/farmbot_os/priv/static/.gitignore +++ b/farmbot_os/priv/static/.gitignore @@ -10,5 +10,6 @@ !favicon.ico *.fw !signal_table.js +!security_icon_lookup.js !*.svg !templates/*.html.eex \ No newline at end of file diff --git a/farmbot_os/priv/static/security_icon_lookup.js b/farmbot_os/priv/static/security_icon_lookup.js new file mode 100644 index 000000000..9be2def83 --- /dev/null +++ b/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"; diff --git a/farmbot_os/priv/static/templates/network.html.eex b/farmbot_os/priv/static/templates/network.html.eex index ccce0e4a3..9f717d0e9 100644 --- a/farmbot_os/priv/static/templates/network.html.eex +++ b/farmbot_os/priv/static/templates/network.html.eex @@ -30,7 +30,7 @@ <%= for {ifname, settings} <- interfaces do %>