diff --git a/web/src/views/UserPresence.vue b/web/src/views/UserPresence.vue index 1533857..a4eaa3e 100644 --- a/web/src/views/UserPresence.vue +++ b/web/src/views/UserPresence.vue @@ -290,6 +290,12 @@ export default { helpDialog: false } }, + computed: { + pagedUserPresences() { + return this.userPresence?.slice(0, this.resultSize) || [] + } + }, + watch: { search(newValue) { if (!newValue) this.$router.push({ query: {} }) @@ -346,11 +352,6 @@ export default { } } }, - computed: { - pagedUserPresences() { - return this.userPresence?.slice(0, this.resultSize) || [] - } - }, beforeMount() { if (this.$vuetify.breakpoint.mdAndUp) this.resultSize = this.pageSize = 24 }, diff --git a/web/src/views/WifiDevices.vue b/web/src/views/WifiDevices.vue index 4acec43..e85c5db 100644 --- a/web/src/views/WifiDevices.vue +++ b/web/src/views/WifiDevices.vue @@ -207,6 +207,19 @@ export default { itemsPerPageArray: [15, 30, 60, 120], page: 1 }), + computed: { + computedWifiDevices() { + return this.wifiDevices?.map(device => ({ + ...device, + hostname: device.hostname || 'Desconhecido', + displayName: device.user?.displayName || 'Não autenticado', + sAMAccountName: device.user?.sAMAccountName, + thumbnailPhoto: device.user?.thumbnailPhoto, + ip: device.ip == 'Unknown' ? 'Sem endereço IP' : device.ip, + essid: device.essid + })) + } + }, watch: { search(newValue) { if (!newValue) this.$router.push({ query: {} }) @@ -259,19 +272,6 @@ export default { } ` } - }, - computed: { - computedWifiDevices() { - return this.wifiDevices?.map(device => ({ - ...device, - hostname: device.hostname || 'Desconhecido', - displayName: device.user?.displayName || 'Não autenticado', - sAMAccountName: device.user?.sAMAccountName, - thumbnailPhoto: device.user?.thumbnailPhoto, - ip: device.ip == 'Unknown' ? 'Sem endereço IP' : device.ip, - essid: device.essid - })) - } } }