Added alert for empty results

This commit is contained in:
Douglas Barone 2020-12-10 11:50:07 -04:00
parent dd5cb97990
commit 5e69c4b1aa

View File

@ -35,10 +35,21 @@
</v-chip>
usuários online.
</div>
<UserPresenceStatusList
:user-presences="pagedUserPresences"
:loading="$apollo.queries.userPresence.loading && !userPresence"
/>
<v-scale-transition mode="out-in">
<UserPresenceStatusList
v-if="pagedUserPresences.length"
:user-presences="pagedUserPresences"
:loading="$apollo.queries.userPresence.loading && !userPresence"
/>
<v-alert
v-else-if="search"
icon="mdi-account-search"
color="info darken-2"
dark
>
Sua pesquisa não encontrou nenhum usuário.
</v-alert>
</v-scale-transition>
<v-footer>
<span v-if="$vuetify.breakpoint.mdAndUp">