summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-30 12:39:33 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-30 12:39:33 +0200
commit948ca3712fe5adf98933106328b089fbed4bb61a (patch)
tree67c9a382ff56854c7aa2967ba4cb7073edfb33f8 /modules
parentf1db82399ae7a1ac6cb58a5489dad51dc3a22c52 (diff)
luci-base: network.js: implement getMeshID() getter
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/network.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js
index a85e2414b..a9e65dac5 100644
--- a/modules/luci-base/htdocs/luci-static/resources/network.js
+++ b/modules/luci-base/htdocs/luci-static/resources/network.js
@@ -2121,9 +2121,19 @@ WifiNetwork = L.Class.extend({
},
getSSID: function() {
+ if (this.getMode() == 'mesh')
+ return null;
+
return this.ubus('net', 'config', 'ssid') || this.get('ssid');
},
+ getMeshID: function() {
+ if (this.getMode() != 'mesh')
+ return null;
+
+ return this.ubus('net', 'config', 'mesh_id') || this.get('mesh_id');
+ },
+
getBSSID: function() {
return this.ubus('net', 'config', 'bssid') || this.get('bssid');
},