add option to filter reporter or reported by clicking on the magnifying glass next to their names on admin report page
All checks were successful
delpoy / build-and-deploy (push) Successful in 49s

This commit is contained in:
bytedream 2023-09-30 15:39:44 +02:00
parent 9be57c1004
commit 56aa3c2673

View File

@ -87,8 +87,26 @@
}}
>
<td title={report.subject}><div class="overflow-scroll">{report.subject}</div></td>
<td>{report.reporter.username}</td>
<td>{report.reported.username}</td>
<td class="flex">
{report.reporter.username}
<button
class="pl-1"
title="Nach Ersteller filtern"
on:click|stopPropagation={() => (reportFilter.reporter = report.reporter.username)}
>
<IconOutline name="magnifying-glass-outline" width="14" height="14" />
</button>
</td>
<td>
{report.reported.username}
<button
class="pl-1"
title="Nach Reportetem Spieler filtern"
on:click|stopPropagation={() => (reportFilter.reported = report.reported.username)}
>
<IconOutline name="magnifying-glass-outline" width="14" height="14" />
</button>
</td>
<td
>{new Intl.DateTimeFormat('de-DE', {
year: 'numeric',