Fix loading state

This commit is contained in:
Douglas Barone 2020-12-17 18:08:29 -04:00
parent 4928dd3a73
commit b4404ed6e4

View File

@ -40,9 +40,8 @@
<span v-if="search">
<v-chip color="primary" class="ml-2 mr-1" dark>
{{
userPresence.filter(
presence => presence.wifiDevices[0].isOnline
).length
userPresence.filter(presence => presence.status == 'ONLINE')
.length
}}
de {{ userPresence.length }}
</v-chip>
@ -53,7 +52,7 @@
<transition-group
v-if="
!$apollo.queries.userPresence.loading && pagedUserPresences.length
!$apollo.queries.userPresence.loading || pagedUserPresences.length
"
name="scale-transition"
tag="div"