add "no reports" message

This commit is contained in:
FloatingGhost 2022-11-11 16:05:02 +00:00
parent e77931d68c
commit e44462b1d5
2 changed files with 11 additions and 5 deletions

View file

@ -7,6 +7,10 @@
{{ $t('moderation.reports.show_closed') }} {{ $t('moderation.reports.show_closed') }}
</Checkbox> </Checkbox>
</div> </div>
<div class="reports">
<div v-if="(openReports.length === 0 && !showClosed) || reports.length === 0">
<p>{{ $t('moderation.reports.no_reports') }}</p>
</div>
<ReportCard <ReportCard
v-for="report in (showClosed ? reports : openReports)" v-for="report in (showClosed ? reports : openReports)"
:key="report.id" :key="report.id"
@ -14,6 +18,7 @@
/> />
</div> </div>
</div> </div>
</div>
</template> </template>
<script src="./reports_tab.js"></script> <script src="./reports_tab.js"></script>

View file

@ -273,6 +273,7 @@
"moderation": { "moderation": {
"moderation": "Moderation", "moderation": "Moderation",
"reports": { "reports": {
"no_reports": "No reports to show",
"add_note": "Add note", "add_note": "Add note",
"close": "Close", "close": "Close",
"delete_note": "Delete", "delete_note": "Delete",