This commit is contained in:
Douglas Barone 2022-04-11 11:55:36 -04:00
parent 3395e3a0a9
commit 93781d8c97
2 changed files with 19 additions and 18 deletions

View File

@ -290,6 +290,12 @@ export default {
helpDialog: false helpDialog: false
} }
}, },
computed: {
pagedUserPresences() {
return this.userPresence?.slice(0, this.resultSize) || []
}
},
watch: { watch: {
search(newValue) { search(newValue) {
if (!newValue) this.$router.push({ query: {} }) if (!newValue) this.$router.push({ query: {} })
@ -346,11 +352,6 @@ export default {
} }
} }
}, },
computed: {
pagedUserPresences() {
return this.userPresence?.slice(0, this.resultSize) || []
}
},
beforeMount() { beforeMount() {
if (this.$vuetify.breakpoint.mdAndUp) this.resultSize = this.pageSize = 24 if (this.$vuetify.breakpoint.mdAndUp) this.resultSize = this.pageSize = 24
}, },

View File

@ -207,6 +207,19 @@ export default {
itemsPerPageArray: [15, 30, 60, 120], itemsPerPageArray: [15, 30, 60, 120],
page: 1 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: { watch: {
search(newValue) { search(newValue) {
if (!newValue) this.$router.push({ query: {} }) 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
}))
}
} }
} }
</script> </script>