mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 12:58:00 +00:00
Added detailed plugin information to the plugins page (#1013)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
b371b3d54f
commit
f912af321f
26 files changed
+884
-95
No files matched your search
@@ -485,7 +485,16 @@ public partial class Plugins : MSGComponentBase
|
||||
await dialogReference.Result;
|
||||
}
|
||||
|
||||
private static bool IsSendingMail(string sourceUrl) => sourceUrl.TrimStart().StartsWith("mailto:", StringComparison.OrdinalIgnoreCase);
|
||||
private async Task ShowPluginInfoAsync(IAvailablePlugin plugin)
|
||||
{
|
||||
var dialogParameters = new DialogParameters<PluginInfoDialog>
|
||||
{
|
||||
{ x => x.Plugin, plugin },
|
||||
};
|
||||
|
||||
var dialogReference = await this.DialogService.ShowAsync<PluginInfoDialog>(string.Format(this.T("Plugin information: {0}"), plugin.Name), dialogParameters, DialogOptions.FULLSCREEN);
|
||||
await dialogReference.Result;
|
||||
}
|
||||
|
||||
private PluginAssistants? TryGetAssistantPlugin(Guid pluginId) => PluginFactory.RunningPlugins.OfType<PluginAssistants>().FirstOrDefault(x => x.Id == pluginId);
|
||||
|
||||
|
||||
Reference in new issue
Block a user