diff --git a/BTCPayServer/Controllers/UIServerController.Plugins.cs b/BTCPayServer/Controllers/UIServerController.Plugins.cs index 395aa8929..97f415214 100644 --- a/BTCPayServer/Controllers/UIServerController.Plugins.cs +++ b/BTCPayServer/Controllers/UIServerController.Plugins.cs @@ -66,6 +66,7 @@ namespace BTCPayServer.Controllers return RedirectToAction("ListPlugins"); } + [HttpPost("server/plugins/cancel")] public IActionResult CancelPluginCommands( [FromServices] PluginService pluginService, string plugin) @@ -93,7 +94,6 @@ namespace BTCPayServer.Controllers } else { - pluginService.InstallPlugin(plugin); } TempData.SetStatusMessageModel(new StatusMessageModel() diff --git a/BTCPayServer/Views/UIServer/ListPlugins.cshtml b/BTCPayServer/Views/UIServer/ListPlugins.cshtml index b7a9ef8d9..8781c37e1 100644 --- a/BTCPayServer/Views/UIServer/ListPlugins.cshtml +++ b/BTCPayServer/Views/UIServer/ListPlugins.cshtml @@ -291,20 +291,13 @@ } - @{ - var pending = Model.Commands.Any(tuple => tuple.plugin.Equals(plugin.Identifier, StringComparison.InvariantCultureIgnoreCase)); - var pluginCommands = Model.Commands.GroupBy(tuple => tuple.plugin.Equals(plugin.Identifier, StringComparison.InvariantCultureIgnoreCase)); - }