Add option to add description to abuse report

This commit is contained in:
2023-11-01 13:39:53 +01:00
parent c5b6b7d773
commit 611a905da7
3 changed files with 30 additions and 9 deletions

View File

@@ -99,6 +99,14 @@ let set_status = async (action, report_type) => {
{/if}
</td>
</tr>
{#if user_report.description !== ""}
<tr>
<td>Description</td>
<td colspan="4" style="white-space: pre;">
{user_report.description}
</td>
</tr>
{/if}
{/each}
</table>
</div>

View File

@@ -160,9 +160,8 @@ onMount(() => {
<div class="toolbar" style="text-align: left;">
<div>Reports: {reports.length}</div>
<div class="toolbar_spacer"></div>
<div>Start:</div>
<div>Range:</div>
<input type="date" bind:this={startPicker}/>
<div>End:</div>
<input type="date" bind:this={endPicker}/>
<button on:click={get_reports}>Go</button>
</div>