#238 [admin] optimise the list of users, pagination and all - make the list hidden by default again

This commit is contained in:
Avris 2021-11-26 19:51:45 +01:00
parent ea8a81d2eb
commit f6cd1b259e
1 changed files with 3 additions and 3 deletions

View File

@ -9,13 +9,13 @@
<p>Stats counted: {{$datetime(stats.calculatedAt)}}</p> <p>Stats counted: {{$datetime(stats.calculatedAt)}}</p>
<section v-if="$isGranted('users')"> <section v-if="$isGranted('users')">
<details class="border mb-3" open> <details class="border mb-3" @click="usersShown = true">
<summary class="bg-light p-3"> <summary class="bg-light p-3">
<Icon v="users"/> <Icon v="users"/>
Users Users
({{stats.users.overall}} overall, {{stats.users.admins}} admins) ({{stats.users.overall}} overall, {{stats.users.admins}} admins)
</summary> </summary>
<div class="border-top"> <div class="border-top" v-if="usersShown">
<div class="input-group mt-4"> <div class="input-group mt-4">
<input class="form-control" v-model="userFilter" :placeholder="$t('crud.filterLong')"/> <input class="form-control" v-model="userFilter" :placeholder="$t('crud.filterLong')"/>
<button :class="['btn', adminsFilter ? 'btn-secondary' : 'btn-outline-secondary']" <button :class="['btn', adminsFilter ? 'btn-secondary' : 'btn-outline-secondary']"
@ -209,7 +209,7 @@
userFilterDelayHandle: undefined, userFilterDelayHandle: undefined,
localeFilter: true, localeFilter: true,
adminsFilter: false, adminsFilter: false,
users: undefined, usersShown: false,
} }
}, },
async asyncData({ app, store }) { async asyncData({ app, store }) {