Renamed UserRequestResponse to UserResponse to match main lib
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
<div class="sm:col-span-2">
|
<div class="sm:col-span-2">
|
||||||
<label class="block text-sm font-medium leading-6 text-white">Owner</label>
|
<label class="block text-sm font-medium leading-6 text-white">Owner</label>
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<InputItemSearchSelect TItem="UserDetailResponse"
|
<InputItemSearchSelect TItem="UserResponse"
|
||||||
TProperty="int"
|
TProperty="int"
|
||||||
@bind-Value="Request.OwnerId"
|
@bind-Value="Request.OwnerId"
|
||||||
AllowNone="false"
|
AllowNone="false"
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
{
|
{
|
||||||
[Parameter] public CreateServerRequest Request { get; set; }
|
[Parameter] public CreateServerRequest Request { get; set; }
|
||||||
|
|
||||||
private UserDetailResponse[]? Users;
|
private UserResponse[]? Users;
|
||||||
|
|
||||||
private async Task<StarDetailResponse[]> LoadStars()
|
private async Task<StarDetailResponse[]> LoadStars()
|
||||||
{
|
{
|
||||||
@@ -113,12 +113,12 @@
|
|||||||
return items;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task<UserDetailResponse[]> Loader(string searchTerm)
|
private async Task<UserResponse[]> Loader(string searchTerm)
|
||||||
{
|
{
|
||||||
if (Users == null)
|
if (Users == null)
|
||||||
{
|
{
|
||||||
Users = await PagedData<UserDetailResponse>.All(async (page, pageSize) =>
|
Users = await PagedData<UserResponse>.All(async (page, pageSize) =>
|
||||||
await ApiClient.GetJson<PagedData<UserDetailResponse>>(
|
await ApiClient.GetJson<PagedData<UserResponse>>(
|
||||||
$"api/admin/users?page={page}&pageSize={pageSize}"
|
$"api/admin/users?page={page}&pageSize={pageSize}"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<div class="sm:col-span-2">
|
<div class="sm:col-span-2">
|
||||||
<label class="block text-sm font-medium leading-6 text-white">Owner</label>
|
<label class="block text-sm font-medium leading-6 text-white">Owner</label>
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
<InputItemSearchSelect TItem="UserDetailResponse"
|
<InputItemSearchSelect TItem="UserResponse"
|
||||||
TProperty="int"
|
TProperty="int"
|
||||||
@bind-Value="Request.OwnerId"
|
@bind-Value="Request.OwnerId"
|
||||||
AllowNone="false"
|
AllowNone="false"
|
||||||
@@ -63,14 +63,14 @@
|
|||||||
{
|
{
|
||||||
[Parameter] public UpdateServerRequest Request { get; set; }
|
[Parameter] public UpdateServerRequest Request { get; set; }
|
||||||
|
|
||||||
private UserDetailResponse[]? Users;
|
private UserResponse[]? Users;
|
||||||
|
|
||||||
private async Task<UserDetailResponse[]> Loader(string searchTerm)
|
private async Task<UserResponse[]> Loader(string searchTerm)
|
||||||
{
|
{
|
||||||
if (Users == null)
|
if (Users == null)
|
||||||
{
|
{
|
||||||
Users = await PagedData<UserDetailResponse>.All(async (page, pageSize) =>
|
Users = await PagedData<UserResponse>.All(async (page, pageSize) =>
|
||||||
await ApiClient.GetJson<PagedData<UserDetailResponse>>(
|
await ApiClient.GetJson<PagedData<UserResponse>>(
|
||||||
$"api/admin/users?page={page}&pageSize={pageSize}"
|
$"api/admin/users?page={page}&pageSize={pageSize}"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user