bulletboards/ImageBoardServerApp/Pages/Moderation/UsersPage.razor

24 lines
522 B
Text
Raw Permalink Normal View History

@page "/sys/modmenu/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
}