[CHANGE] Reworked client creation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Manager.App.Components.Dialogs;
|
||||
using Manager.App.Models.Library;
|
||||
using Manager.Data.Entities.LibraryContext;
|
||||
using Manager.YouTube;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
@@ -28,6 +29,20 @@ public partial class Channels : ComponentBase
|
||||
return;
|
||||
}
|
||||
|
||||
var client = (YouTubeClient)result.Data;
|
||||
var client = (ClientPrep)result.Data;
|
||||
if (client == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/*var savedResult = await ClientManager.SaveClientAsync(client);
|
||||
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);
|
||||
}*/
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user