Updated plugin version control. Added notification system to web ui

This commit is contained in:
2025-05-06 13:11:14 +03:00
parent 2bd368dcce
commit 3a7bd53cfc
14 changed files with 313 additions and 69 deletions

View File

@@ -81,11 +81,11 @@
Logger.Log($"Deleting plugin {pluginName}", this);
bool result = await PluginManager.UninstallPluginByName(pluginName);
var response = await PluginManager.UninstallPluginByName(pluginName);
if (!result)
if (!response.IsSuccess)
{
Logger.Log($"Failed to delete plugin {pluginName}", this, LogType.Error);
Logger.Log(response.Message, this, LogType.Error);
return;
}
@@ -100,14 +100,14 @@
private async Task PluginDetailsButtonClick(string pluginName)
{
Logger.Log($"Getting plugin details for {pluginName}", this);
var pluginDetails = await PluginManager.GetPluginDataByName(pluginName);
if (pluginDetails == null)
var response = await PluginManager.GetPluginDataByName(pluginName);
if (!response.IsSuccess)
{
Logger.Log($"Failed to get details for plugin {pluginName}", this, LogType.Error);
Logger.Log(response.Message, this, LogType.Error);
return;
}
_selectedPluginDetails = pluginDetails;
_selectedPluginDetails = response.Data;
_showPluginDetailsModal = true;
Logger.Log($"Plugin details for {pluginName} retrieved", this);