From aef06c7f610331867742f560e89570b897497ea9 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Tue, 20 Apr 2021 09:09:32 +0200 Subject: [PATCH] Wording updates Thanks @Zaxounette! --- BTCPayServer.Tests/SeleniumTests.cs | 2 +- BTCPayServer/Controllers/StoresController.LightningLike.cs | 4 ++-- BTCPayServer/Controllers/StoresController.Onchain.cs | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/BTCPayServer.Tests/SeleniumTests.cs b/BTCPayServer.Tests/SeleniumTests.cs index d8eea140f..bd8e7a9f6 100644 --- a/BTCPayServer.Tests/SeleniumTests.cs +++ b/BTCPayServer.Tests/SeleniumTests.cs @@ -366,7 +366,7 @@ namespace BTCPayServer.Tests s.AddLightningNode(); s.Driver.AssertNoError(); var successAlert = s.FindAlertMessage(); - Assert.Contains("BTC Lightning node modified.", successAlert.Text); + Assert.Contains("BTC Lightning node updated.", successAlert.Text); Assert.False(s.Driver.PageSource.Contains(offchainHint), "Lightning hint should be dismissed at this point"); var storeUrl = s.Driver.Url; diff --git a/BTCPayServer/Controllers/StoresController.LightningLike.cs b/BTCPayServer/Controllers/StoresController.LightningLike.cs index 74397c0ac..8952ce75e 100644 --- a/BTCPayServer/Controllers/StoresController.LightningLike.cs +++ b/BTCPayServer/Controllers/StoresController.LightningLike.cs @@ -102,7 +102,7 @@ namespace BTCPayServer.Controllers store.SetStoreBlob(storeBlob); store.SetSupportedPaymentMethod(paymentMethodId, paymentMethod); await _Repo.UpdateStore(store); - TempData[WellKnownTempData.SuccessMessage] = $"{network.CryptoCode} Lightning node modified."; + TempData[WellKnownTempData.SuccessMessage] = $"{network.CryptoCode} Lightning node updated."; return RedirectToAction(nameof(UpdateStore), new { storeId }); case "test": @@ -115,7 +115,7 @@ namespace BTCPayServer.Controllers using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(20)); await handler.TestConnection(info, cts.Token); } - TempData[WellKnownTempData.SuccessMessage] = $"Connection to the Lightning node succeeded. Your node address: {info}"; + TempData[WellKnownTempData.SuccessMessage] = $"Connection to the Lightning node successful. Your node address: {info}"; } catch (Exception ex) { diff --git a/BTCPayServer/Controllers/StoresController.Onchain.cs b/BTCPayServer/Controllers/StoresController.Onchain.cs index 08203f5f4..ede71dfef 100644 --- a/BTCPayServer/Controllers/StoresController.Onchain.cs +++ b/BTCPayServer/Controllers/StoresController.Onchain.cs @@ -377,8 +377,7 @@ namespace BTCPayServer.Controllers return checkResult; } - TempData[WellKnownTempData.SuccessMessage] = - $"Derivation settings for {network.CryptoCode} have been modified."; + TempData[WellKnownTempData.SuccessMessage] = $"Derivation settings for {network.CryptoCode} have been updated."; return RedirectToAction(nameof(UpdateStore), new {storeId}); }