mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-02-23 22:01:49 +01:00
Show a loader until groups are fetched
This commit is contained in:
parent
f6e04fb36c
commit
1292b7bd89
@ -12,18 +12,25 @@
|
||||
<font-awesome-icon :icon="['fas', 'plus-circle']" /> Create new group
|
||||
</router-link>
|
||||
</div>
|
||||
<div v-for="group in groups" :key="group.id" class="group-item has-text-light is-size-5 is-size-6-mobile">
|
||||
{{ group.name }}
|
||||
<a class="has-text-grey is-pulled-right" @click="deleteGroup(group.id)">
|
||||
<font-awesome-icon :icon="['fas', 'trash']" />
|
||||
</a>
|
||||
<router-link :to="{ name: 'editGroup', params: { groupId: group.id }}" class="tag is-dark">
|
||||
{{ $t('commons.rename') }}
|
||||
</router-link>
|
||||
<span class="is-family-primary is-size-6 is-size-7-mobile has-text-grey">{{ group.count }} {{ $t('twofaccounts.accounts') }}</span>
|
||||
<div v-if="groups.length > 0">
|
||||
<div v-for="group in groups" :key="group.id" class="group-item has-text-light is-size-5 is-size-6-mobile">
|
||||
{{ group.name }}
|
||||
<a class="has-text-grey is-pulled-right" @click="deleteGroup(group.id)">
|
||||
<font-awesome-icon :icon="['fas', 'trash']" />
|
||||
</a>
|
||||
<router-link :to="{ name: 'editGroup', params: { groupId: group.id }}" class="tag is-dark">
|
||||
{{ $t('commons.rename') }}
|
||||
</router-link>
|
||||
<span class="is-family-primary is-size-6 is-size-7-mobile has-text-grey">{{ group.count }} {{ $t('twofaccounts.accounts') }}</span>
|
||||
</div>
|
||||
<div class="mt-2 is-size-7 is-pulled-right" v-if="groups.length > 0">
|
||||
{{ $t('groups.deleting_group_does_not_delete_accounts')}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-2 is-size-7 is-pulled-right" v-if="groups.length > 0">
|
||||
{{ $t('groups.deleting_group_does_not_delete_accounts')}}
|
||||
<div v-else class="has-text-centered">
|
||||
<span class="is-size-4">
|
||||
<font-awesome-icon :icon="['fas', 'spinner']" spin />
|
||||
</span>
|
||||
</div>
|
||||
<!-- footer -->
|
||||
<vue-footer :showButtons="true">
|
||||
|
Loading…
Reference in New Issue
Block a user