mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
Show success message when derivation scheme is updated
This commit is contained in:
@@ -272,13 +272,15 @@ namespace BTCPayServer.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
await _Repo.UpdateStore(store);
|
await _Repo.UpdateStore(store);
|
||||||
if (oldConfig != vm.Config)
|
|
||||||
StatusMessage = $"Derivation settings for {network.CryptoCode} has been modified.";
|
|
||||||
if (willBeExcluded != wasExcluded)
|
if (willBeExcluded != wasExcluded)
|
||||||
{
|
{
|
||||||
var label = willBeExcluded ? "disabled" : "enabled";
|
var label = willBeExcluded ? "disabled" : "enabled";
|
||||||
StatusMessage = $"On-Chain payments for {network.CryptoCode} has been {label}.";
|
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});
|
return RedirectToAction(nameof(UpdateStore), new {storeId = storeId});
|
||||||
}
|
}
|
||||||
else if (!string.IsNullOrEmpty(vm.HintAddress))
|
else if (!string.IsNullOrEmpty(vm.HintAddress))
|
||||||
|
|||||||
Reference in New Issue
Block a user