{{
- wifiDevices && wifiDevices.filter(device => device.isOnline).length
+ wifiDevices &&
+ wifiDevices.filter(device => device.status == 'ONLINE').length
}}
online de
@@ -56,7 +57,7 @@
-
+
mdi-wifi
@@ -234,7 +235,7 @@ export default {
ip
uptime
apName
- isOnline
+ status
}
}
`
diff --git a/web/src/views/WifiUsers.vue b/web/src/views/WifiUsers.vue
index 2801e95..d75f491 100644
--- a/web/src/views/WifiUsers.vue
+++ b/web/src/views/WifiUsers.vue
@@ -60,7 +60,7 @@
offset-y="10"
:content="
user.wifiDevices
- .filter(wifiDevice => !wifiDevice.isOnline)
+ .filter(wifiDevice => !wifiDevice.status == 'ONLINE')
.length.toString()
"
>
@@ -70,7 +70,7 @@
offset-y="10"
:content="
user.wifiDevices
- .filter(wifiDevice => wifiDevice.isOnline)
+ .filter(wifiDevice => wifiDevice.status == 'ONLINE')
.length.toString()
"
>
@@ -87,7 +87,10 @@
>
-
+
mdi-cellphone-wireless
{{ device.hostname || device.mac }} {{ device.oui }}
@@ -95,7 +98,7 @@
-
+
mdi-wifi
@@ -214,7 +217,7 @@ export default {
return this.wifiUsers?.map(user => ({
...user,
ips: user.wifiDevices.reduce((ips, device) => ` ${device.ip}`, ''),
- wifiDevices: user.wifiDevices.sort(a => (a.isOnline ? -1 : 1))
+ wifiDevices: user.wifiDevices.sort(a => (a.status == 'ONLINE' ? -1 : 1))
}))
}
},
@@ -234,7 +237,7 @@ export default {
hostname
firstSeen
lastSeen
- isOnline
+ status
apName
essid
ip