mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Show success message when derivation scheme is updated
This commit is contained in:
parent
22b05500f1
commit
f3461bfbe6
1 changed files with 4 additions and 2 deletions
|
@ -272,13 +272,15 @@ namespace BTCPayServer.Controllers
|
|||
}
|
||||
|
||||
await _Repo.UpdateStore(store);
|
||||
if (oldConfig != vm.Config)
|
||||
StatusMessage = $"Derivation settings for {network.CryptoCode} has been modified.";
|
||||
if (willBeExcluded != wasExcluded)
|
||||
{
|
||||
var label = willBeExcluded ? "disabled" : "enabled";
|
||||
StatusMessage = $"On-Chain payments for {network.CryptoCode} has been {label}.";
|
||||
}
|
||||
else
|
||||
{
|
||||
StatusMessage = $"Derivation settings for {network.CryptoCode} has been modified.";
|
||||
}
|
||||
return RedirectToAction(nameof(UpdateStore), new {storeId = storeId});
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(vm.HintAddress))
|
||||
|
|
Loading…
Add table
Reference in a new issue