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