Wording updates

Thanks @Zaxounette!
This commit is contained in:
Dennis Reimann
2021-04-20 09:09:32 +02:00
parent 52be5746c6
commit aef06c7f61
3 changed files with 4 additions and 5 deletions

View File

@@ -366,7 +366,7 @@ namespace BTCPayServer.Tests
s.AddLightningNode(); s.AddLightningNode();
s.Driver.AssertNoError(); s.Driver.AssertNoError();
var successAlert = s.FindAlertMessage(); 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"); Assert.False(s.Driver.PageSource.Contains(offchainHint), "Lightning hint should be dismissed at this point");
var storeUrl = s.Driver.Url; var storeUrl = s.Driver.Url;

View File

@@ -102,7 +102,7 @@ namespace BTCPayServer.Controllers
store.SetStoreBlob(storeBlob); store.SetStoreBlob(storeBlob);
store.SetSupportedPaymentMethod(paymentMethodId, paymentMethod); store.SetSupportedPaymentMethod(paymentMethodId, paymentMethod);
await _Repo.UpdateStore(store); 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 }); return RedirectToAction(nameof(UpdateStore), new { storeId });
case "test": case "test":
@@ -115,7 +115,7 @@ namespace BTCPayServer.Controllers
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(20)); using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(20));
await handler.TestConnection(info, cts.Token); 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) catch (Exception ex)
{ {

View File

@@ -377,8 +377,7 @@ namespace BTCPayServer.Controllers
return checkResult; return checkResult;
} }
TempData[WellKnownTempData.SuccessMessage] = TempData[WellKnownTempData.SuccessMessage] = $"Derivation settings for {network.CryptoCode} have been updated.";
$"Derivation settings for {network.CryptoCode} have been modified.";
return RedirectToAction(nameof(UpdateStore), new {storeId}); return RedirectToAction(nameof(UpdateStore), new {storeId});
} }