bulletboards/ImageBoardServerApp/Pages/Moderation/ReportsPage.razor

25 lines
570 B
Text
Raw Normal View History

@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>
2023-02-07 20:21:38 +00:00
@code {
private List<ReportData> reports;
protected override async Task OnInitializedAsync()
{
reports = await ReportsRepository.getReportsAsync();
Console.WriteLine("Opened Reports");
}
2023-02-07 20:21:38 +00:00
}