Added pages for module and plugin download

This commit is contained in:
2024-08-29 21:32:14 +03:00
parent 046c9bf98b
commit 34a54cd78f
10 changed files with 127 additions and 46 deletions

View File

@@ -2,8 +2,6 @@
@using DiscordBotCore.Plugin
@using DiscordBotWebUI.Types
@inject DialogService DialogService
<RadzenDataGrid AllowColumnResize="true" PageSize="5" AllowPaging="true" PagerHorizontalAlign="HorizontalAlign.Left" Data="ListedItems">
<Columns>
<RadzenDataGridColumn Property="@nameof(MarketItem.Name)" Title="Item Name"></RadzenDataGridColumn>
@@ -50,8 +48,6 @@
});
await Application.CurrentApplication.ModuleManager.InstallModule(moduleName, downloadProgress);
_ProgressBarVisible = false;
DialogService.Close(true);
}
private async Task DownloadPlugin(string pluginName)
@@ -68,7 +64,5 @@
await Application.CurrentApplication.PluginManager.InstallPlugin(pluginInfo, downloadProgress);
_ProgressBarVisible = false;
DialogService.Close(true);
}
}