[CHANGE] Adding accounts
This commit is contained in:
@@ -1,7 +1,28 @@
|
||||
using Manager.Data.Entities.LibraryContext;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using MudBlazor;
|
||||
|
||||
namespace Manager.App.Components.Pages;
|
||||
|
||||
public partial class Channels : ComponentBase
|
||||
{
|
||||
private bool _addAccountDialogVisible;
|
||||
private DialogOptions _dialogOptions = new() { BackdropClick = false, CloseButton = true, FullWidth = true };
|
||||
private List<HttpCookie> _cookies = [];
|
||||
private async Task<TableData<ChannelEntity>> ServerReload(TableState state, CancellationToken token)
|
||||
{
|
||||
var results = await LibraryService.GetChannelAccountsAsync(state.Page * state.PageSize, state.PageSize, token);
|
||||
if (!results.IsSuccess)
|
||||
{
|
||||
return new TableData<ChannelEntity>();
|
||||
}
|
||||
|
||||
return new TableData<ChannelEntity> { Items = results.Value, TotalItems = results.Total };
|
||||
}
|
||||
}
|
||||
|
||||
public record HttpCookie()
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Value { get; set; }
|
||||
}
|
Reference in New Issue
Block a user