[CHANGE] Reworked db with interceptors
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
@inject ILibraryService LibraryService
|
||||
@inject IDialogService DialogService
|
||||
@inject IOptions<LibrarySettings> LibraryOptions
|
||||
@inject ClientService ClientService
|
||||
@inject ISnackbar Snackbar
|
||||
|
||||
<PageTitle>Channels</PageTitle>
|
||||
|
||||
|
@@ -28,21 +28,21 @@ public partial class Channels : ComponentBase
|
||||
return;
|
||||
}
|
||||
|
||||
var client = (ClientPrep)result.Data;
|
||||
if (client == null)
|
||||
var clientPrep = (ClientPrep)result.Data;
|
||||
if (clientPrep?.YouTubeClient == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/*var savedResult = await ClientManager.SaveClientAsync(client);
|
||||
var savedResult = await ClientService.SaveClientAsync(clientPrep.YouTubeClient, clientPrep.Channel);
|
||||
if (!savedResult.IsSuccess)
|
||||
{
|
||||
Snackbar.Add($"Failed to store client: {savedResult.Error?.Description ?? "Unknown!"}", Severity.Error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Snackbar.Add($"Client {client.External.Channel?.Handle ?? client.Id} saved!", Severity.Success);
|
||||
}*/
|
||||
Snackbar.Add($"Client {clientPrep.Channel?.Handle ?? clientPrep.YouTubeClient.Id} saved!", Severity.Success);
|
||||
}
|
||||
|
||||
await InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@page "/Development"
|
||||
@using Manager.App.Components.Application.Dev
|
||||
<title>Development page</title>
|
||||
<PageTitle>Development page</PageTitle>
|
||||
|
||||
<MudTabs Outlined Position="Position.Left" PanelClass="pa-4" ApplyEffectsToContainer Style="height: 100%">
|
||||
<MudTabPanel Text="Authentication">
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
@inject BackgroundServiceRegistry ServiceRegistry
|
||||
|
||||
<title>Services</title>
|
||||
<PageTitle>Services</PageTitle>
|
||||
|
||||
<MudDataGrid T="ExtendedBackgroundService" Items="@_backgroundServices" Filterable QuickFilter="@QuickFilter">
|
||||
<ToolBarContent>
|
||||
@@ -39,4 +39,4 @@
|
||||
</MudDataGrid>
|
||||
|
||||
<EventConsole AsyncEnumerable="@GetEventAsyncEnumerable()" InitialEvents="@GetInitialEvents()"
|
||||
Elevation="0" Class="mt-3" Style="flex: 1; display: flex; flex-direction: column; min-height: 0;"/>
|
||||
Elevation="0" Class="mt-3" Style="flex: 1; display: flex; flex-direction: column; min-height: 350px;"/>
|
||||
|
Reference in New Issue
Block a user