bulletboards/ImageBoardServerApp/Pages/Moderation/ReportsPage.razor

25 lines
No EOL
547 B
Text

@page "/sys/reports"
@using ImageBoardServerApp.Data.Repository
<AuthorizeView>
<Authorized>
<h3>Reports</h3>
@foreach (var r in reports)
{
<Report 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");
}
}