hide report table for users that do not already have reports and cannot report new ones

This commit is contained in:
Gregor Vostrak
2024-12-17 13:03:59 +01:00
parent 19ed966504
commit 6e226cd743

View File

@@ -115,11 +115,11 @@ watch(currentPage, () => {
</div> </div>
<ReportTable <ReportTable
v-if="reports" v-if="reports.length > 0 || isAllowedToPerformPremiumAction()"
:reports="reports" :reports="reports"></ReportTable>
show-billable-rate=""></ReportTable>
<PaginationRoot <PaginationRoot
v-if="reports.length > 0 || isAllowedToPerformPremiumAction()"
:total="totalPages" :total="totalPages"
:items-per-page="pageLimit" :items-per-page="pageLimit"
class="flex justify-center items-center py-8" class="flex justify-center items-center py-8"