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 %>