mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 07:11:10 +00:00
Defines base implementation for Result, with samples.
This commit is contained in:
1 parent
c86893a0cf
commit
8fe90a4dde
20 files changed
+538
-7
No files matched your search
@@ -45,10 +45,8 @@ public class PluginsController : Controller
|
||||
// load the settings of the loaded plugins, so that the settings forms can be rendered on the server
|
||||
Dictionary<Guid, PluginSettingsModel> settingsByPluginId = [];
|
||||
foreach (PluginModel plugin in plugins)
|
||||
{
|
||||
if (plugin.LoadStatus == PluginLoadStatus.Loaded)
|
||||
settingsByPluginId[plugin.Id] = await _apiHttpClient.GetAsync<PluginSettingsModel>($"plugins/{plugin.Id}/settings", cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
ViewData["pluginSettings"] = settingsByPluginId;
|
||||
return View(plugins);
|
||||
|
||||
Reference in new issue
Block a user