bulletboards/ImageBoardServerApp/Pages/Moderation/ReportsPage.razor
limited_dev dcc7634f5e feat: The posts are now sorted
fix: modmenu now checks for the permission, you now have to be 18yo to access the boards, images now get deleted when deleting threads / posts, fixed grammar error in the register page, other fixed which i forget
2023-02-13 18:45:14 +01:00

25 lines
No EOL
570 B
Text

@page "/sys/reports"
@using ImageBoardServerApp.Data.Repository
<AuthorizeView Roles="Admin,Mod">
<Authorized>
<h3>Reports</h3>
@foreach (var r in reports)
{
<ReportEntry report="r"/>
<hr/>
}
</Authorized>
<NotAuthorized>
<DeadLink/>
</NotAuthorized>
</AuthorizeView>
@code {
private List<ReportData> reports;
protected override async Task OnInitializedAsync()
{
reports = await ReportsRepository.getReportsAsync();
Console.WriteLine("Opened Reports");
}
}