diff --git a/BTCPayServer/Controllers/ServerController.Plugins.cs b/BTCPayServer/Controllers/ServerController.Plugins.cs index 6514a9425..86ecdb822 100644 --- a/BTCPayServer/Controllers/ServerController.Plugins.cs +++ b/BTCPayServer/Controllers/ServerController.Plugins.cs @@ -29,7 +29,7 @@ namespace BTCPayServer.Controllers TempData.SetStatusMessageModel(new StatusMessageModel() { Severity = StatusMessageModel.StatusSeverity.Error, - Message = "The remote could not be reached" + Message = "Remote plugins lookup failed. Try again later." }); availablePlugins = Array.Empty(); } @@ -60,7 +60,7 @@ namespace BTCPayServer.Controllers pluginService.UninstallPlugin(plugin); TempData.SetStatusMessageModel(new StatusMessageModel() { - Message = "Plugin scheduled to be uninstalled", + Message = "Plugin scheduled to be uninstalled.", Severity = StatusMessageModel.StatusSeverity.Success }); @@ -73,7 +73,7 @@ namespace BTCPayServer.Controllers pluginService.CancelCommands(plugin); TempData.SetStatusMessageModel(new StatusMessageModel() { - Message = "Updated", + Message = "Plugin action cancelled.", Severity = StatusMessageModel.StatusSeverity.Success }); diff --git a/BTCPayServer/Views/Server/ListPlugins.cshtml b/BTCPayServer/Views/Server/ListPlugins.cshtml index dcea80ba1..7c427dc63 100644 --- a/BTCPayServer/Views/Server/ListPlugins.cshtml +++ b/BTCPayServer/Views/Server/ListPlugins.cshtml @@ -5,175 +5,161 @@ var availableAndNotInstalled = Model.Available.Where(plugin => !installed.Contains(plugin.Identifier)); } + + @if (Model.Commands.Any()) { -
+
You need to restart BTCPay Server in order to update your active plugins. @if (Model.CanShowRestart) { -
- + +
}
} - @if (Model.Installed.Any()) { -

Installed Plugins

-
- +

Installed Plugins

+
@foreach (var plugin in Model.Installed) { var matchedAvailable = Model.Available.SingleOrDefault(availablePlugin => availablePlugin.Identifier == plugin.Identifier); -
-
-

- @plugin.Name @plugin.Version -

-

@plugin.Description

- -
- @if (!plugin.SystemPlugin) - { -
    -
  • - Current version - @plugin.Version -
  • - @if (matchedAvailable != null) - { -
  • - Remote version - @matchedAvailable.Version -
  • - } -
- } @if (availableAndNotInstalled.Any()) { -

Available Plugins

- -
+

Available Plugins

+
@foreach (var plugin in availableAndNotInstalled) { -
-
-

- @plugin.Name @plugin.Version -

-

@plugin.Description

-
- } - -
-
-
-

Add plugin manually

-
This is an extremely dangerous operation. Do not upload plugins from someone that you do not trust.
-
-
-
- - +
+ +
+
+
+
+

Add plugin manually

+
+
This is an extremely dangerous operation!
+ Only upload plugins from trusted sources.
+ +
+
+ + +
+
+ +
-
- -
- +
+ @if (Model.Commands.Any()) { - -
-
-
-

Pending actions

-
    - @foreach (var extComm in Model.Commands.GroupBy(tuple => tuple.plugin)) - { -
  • -
    - @extComm.Key (@extComm.Last().command) -
    - -
    -
    -
  • - } -
+
+ +
+
+
+
+

Pending actions

+
    + @foreach (var extComm in Model.Commands.GroupBy(tuple => tuple.plugin)) + { +
  • +
    + @extComm.Key +
    + +
    +
    +
  • + } +
+
+
@@ -181,19 +167,17 @@ @section Scripts { + }); + }