Browse Source

feat: make pagination in bottom

pull/5627/head
DarkPhoenix2704 2 years ago
parent
commit
ff2a9e57b6
  1. 21
      packages/nc-gui/components/dashboard/settings/AuditTab.vue

21
packages/nc-gui/components/dashboard/settings/AuditTab.vue

@ -92,8 +92,8 @@ const columns = [
<template> <template>
<div class="flex flex-col gap-4 w-full"> <div class="flex flex-col gap-4 w-full">
<div v-if="!appInfo.auditEnabled" class="text-red-500">Audit logs are currently disabled by administrators.</div> <div v-if="!appInfo.auditEnabled" class="text-red-500">Audit logs are currently disabled by administrators.</div>
<div class="flex flex-row justify-between items-center"> <div class="flex flex-row justify-end items-center">
<a-button class="self-start" @click="loadAudits"> <a-button class="self-start !rounded-md" @click="loadAudits">
<!-- Reload --> <!-- Reload -->
<div class="flex items-center gap-2 text-gray-600 font-light"> <div class="flex items-center gap-2 text-gray-600 font-light">
<component :is="iconMap.reload" :class="{ 'animate-infinite animate-spin !text-success': isLoading }" /> <component :is="iconMap.reload" :class="{ 'animate-infinite animate-spin !text-success': isLoading }" />
@ -101,14 +101,6 @@ const columns = [
{{ $t('general.reload') }} {{ $t('general.reload') }}
</div> </div>
</a-button> </a-button>
<a-pagination
v-model:current="currentPage"
v-model:page-size="currentLimit"
:total="totalRows"
show-less-items
@change="loadAudits"
/>
</div> </div>
<a-table <a-table
@ -124,6 +116,15 @@ const columns = [
<a-empty :image="Empty.PRESENTED_IMAGE_SIMPLE" :description="$t('labels.noData')" /> <a-empty :image="Empty.PRESENTED_IMAGE_SIMPLE" :description="$t('labels.noData')" />
</template> </template>
</a-table> </a-table>
<div class="flex flex-row justify-center items-center">
<a-pagination
v-model:current="currentPage"
v-model:page-size="currentLimit"
:total="totalRows"
show-less-items
@change="loadAudits"
/>
</div>
</div> </div>
</template> </template>

Loading…
Cancel
Save