Merge branch 'add-wheel' into 'master'

add loading wheel to some slow views

See merge request framasoft/mobilizon!1011
This commit is contained in:
Thomas Citharel 2021-08-04 09:56:58 +00:00
commit 637bc1ec3f
3 changed files with 584 additions and 601 deletions

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,7 @@
</li>
</ul>
</nav>
<b-loading :active.sync="$apollo.loading"></b-loading>
<invitations
v-if="isCurrentActorAnInvitedGroupMember"
:invitations="[groupMember]"

View File

@ -85,6 +85,7 @@
>
</section>
<b-tabs v-else v-model="activeTab" type="is-boxed" class="searchTabs">
<b-loading :active.sync="$apollo.loading"></b-loading>
<b-tab-item>
<template slot="header">
<b-icon icon="calendar"></b-icon>
@ -119,12 +120,6 @@
<b-message v-else-if="$apollo.loading === false" type="is-danger">{{
$t("No events found")
}}</b-message>
<b-loading
v-else-if="$apollo.loading"
:is-full-page="false"
v-model="$apollo.loading"
:can-cancel="false"
/>
</b-tab-item>
<b-tab-item v-if="!tag">
<template slot="header">
@ -162,12 +157,6 @@
<b-message v-else-if="$apollo.loading === false" type="is-danger">
{{ $t("No groups found") }}
</b-message>
<b-loading
v-else-if="$apollo.loading"
:is-full-page="false"
v-model="$apollo.loading"
:can-cancel="false"
/>
</b-tab-item>
</b-tabs>
</div>