API & Client - order on user account status in administration

+ fixes
This commit is contained in:
Sam
2022-03-26 18:28:00 +01:00
parent 614c888ec4
commit eb02ede0d7
8 changed files with 115 additions and 11 deletions

View File

@ -30,8 +30,8 @@
<th>
{{ capitalize($t('workouts.WORKOUT', 0)) }}
</th>
<th>{{ $t('user.ADMIN') }}</th>
<th>{{ $t('admin.ACTIVE') }}</th>
<th>{{ $t('user.ADMIN') }}</th>
<th>{{ $t('admin.ACTION') }}</th>
</tr>
</thead>
@ -76,19 +76,19 @@
</td>
<td class="text-center">
<span class="cell-heading">
{{ $t('user.ADMIN') }}
{{ $t('admin.ACTIVE') }}
</span>
<i
:class="`fa fa${user.admin ? '-check' : ''}-square-o`"
:class="`fa fa${user.is_active ? '-check' : ''}-square-o`"
aria-hidden="true"
/>
</td>
<td class="text-center">
<span class="cell-heading">
{{ $t('admin.ACTIVE') }}
{{ $t('user.ADMIN') }}
</span>
<i
:class="`fa fa${user.is_active ? '-check' : ''}-square-o`"
:class="`fa fa${user.admin ? '-check' : ''}-square-o`"
aria-hidden="true"
/>
</td>
@ -159,6 +159,7 @@
const router = useRouter()
const orderByList: string[] = [
'is_active',
'admin',
'created_at',
'username',