bulletboards/ImageBoardServerApp/Pages/Moderation/UsersPage.razor

24 lines
514 B
Text
Raw Normal View History

@page "/sys/users"
2023-02-12 18:06:33 +00:00
@using ImageBoardServerApp.Data.Repository
<AuthorizeView Roles="Admin">
<Authorized>
<h3>Users</h3>
2023-02-12 18:06:33 +00:00
@foreach (var u in users)
{
<UserEntry user="u"/>
<hr/>
}
</Authorized>
<NotAuthorized>
<DeadLink/>
</NotAuthorized>
</AuthorizeView>
2023-02-07 20:47:28 +00:00
@code {
2023-02-12 18:06:33 +00:00
private List<UserData> users { get; set; }
protected override async Task OnInitializedAsync()
{
users = await UsersRepository.getUsersAsync();
}
2023-02-07 20:47:28 +00:00
}