diff --git a/BTCPayServer.Tests/SeleniumTester.cs b/BTCPayServer.Tests/SeleniumTester.cs index 93aac8a42..641c4c09f 100644 --- a/BTCPayServer.Tests/SeleniumTester.cs +++ b/BTCPayServer.Tests/SeleniumTester.cs @@ -212,8 +212,6 @@ namespace BTCPayServer.Tests { Assert.True(Driver.FindElement(By.Id("LightningNodeType-Internal")).Enabled, "Usage of the internal Lightning node is disabled."); Driver.FindElement(By.CssSelector("label[for=\"LightningNodeType-Internal\"]")).Click(); - - Driver.FindElement(By.Id("saveInternal")).Click(); } else { @@ -222,10 +220,9 @@ namespace BTCPayServer.Tests Driver.FindElement(By.Id("test")).Click(); Assert.Contains("Connection to the Lightning node successful.", FindAlertMessage().Text); - - Driver.FindElement(By.Id("saveCustom")).Click(); } + Driver.FindElement(By.Id("save")).Click(); Assert.Contains($"{cryptoCode} Lightning node updated.", FindAlertMessage().Text); var enabled = Driver.FindElement(By.Id($"{cryptoCode}LightningEnabled")); diff --git a/BTCPayServer.Tests/UnitTest1.cs b/BTCPayServer.Tests/UnitTest1.cs index 45a2fa49b..8204c474d 100644 --- a/BTCPayServer.Tests/UnitTest1.cs +++ b/BTCPayServer.Tests/UnitTest1.cs @@ -1006,7 +1006,7 @@ namespace BTCPayServer.Tests }, "save", "BTC").GetAwaiter().GetResult()); // Make sure old connection string format does not work - Assert.IsType(storeController.SetupLightningNode(user.StoreId, + Assert.IsType(storeController.SetupLightningNode(user.StoreId, new LightningNodeViewModel { ConnectionString = tester.MerchantCharge.Client.Uri.AbsoluteUri }, "save", "BTC").GetAwaiter().GetResult()); diff --git a/BTCPayServer/Views/Stores/SetupLightningNode.cshtml b/BTCPayServer/Views/Stores/SetupLightningNode.cshtml index c91b41d3e..3f81d78b6 100644 --- a/BTCPayServer/Views/Stores/SetupLightningNode.cshtml +++ b/BTCPayServer/Views/Stores/SetupLightningNode.cshtml @@ -30,6 +30,7 @@ margin-right: 2rem; color: var(--btcpay-color-warning); } + #save { min-width: 7rem; } #InternalSetup, #CustomSetup, #LightningNodeType-Internal, #LightningNodeType-Custom { display: none; } #LightningNodeType-Internal:checked + * + * + * + #InternalSetup, #LightningNodeType-Custom:checked + * + *+ #CustomSetup { display: block; } @@ -80,7 +81,6 @@ @if (Model.CanUseInternalNode) {

That's it, no need to configure anything else.

- } else { @@ -152,7 +152,9 @@ - + +
+
diff --git a/BTCPayServer/Views/Stores/UpdateStore.cshtml b/BTCPayServer/Views/Stores/UpdateStore.cshtml index af31aed98..643cdae58 100644 --- a/BTCPayServer/Views/Stores/UpdateStore.cshtml +++ b/BTCPayServer/Views/Stores/UpdateStore.cshtml @@ -112,15 +112,15 @@ @if (isSetUp) { @scheme.Address + + Public Node Info + } - - Public Node Info -