bulletboards/ImageBoardServerApp/Pages/Moderation/ReportsPage.razor

25 lines
547 B
Text
Raw Normal View History

@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>
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
}