Skip to content

Commit 6e226cd

Browse files
committed
hide report table for users that do not already have reports and cannot report new ones
1 parent 19ed966 commit 6e226cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/js/Pages/ReportingShared.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ watch(currentPage, () => {
115115
</div>
116116

117117
<ReportTable
118-
v-if="reports"
119-
:reports="reports"
120-
show-billable-rate=""></ReportTable>
118+
v-if="reports.length > 0 || isAllowedToPerformPremiumAction()"
119+
:reports="reports"></ReportTable>
121120

122121
<PaginationRoot
122+
v-if="reports.length > 0 || isAllowedToPerformPremiumAction()"
123123
:total="totalPages"
124124
:items-per-page="pageLimit"
125125
class="flex justify-center items-center py-8"

0 commit comments

Comments
 (0)