Improve display and structure of payment related configuration

This commit is contained in:
Dennis Reimann
2021-09-29 14:33:49 +02:00
committed by Andrew Camilleri
parent 975ad2f8ab
commit 67aee9bdc6
3 changed files with 100 additions and 86 deletions

View File

@@ -578,6 +578,8 @@ namespace BTCPayServer.Controllers
vm.PayJoinEnabled = storeBlob.PayJoinEnabled;
vm.HintWallet = storeBlob.Hints.Wallet;
vm.HintLightning = storeBlob.Hints.Lightning;
vm.IsOnchainSetup = vm.DerivationSchemes.Any(scheme => !string.IsNullOrWhiteSpace(scheme.Value));
vm.IsLightningSetup = vm.LightningNodes.Any(scheme => !string.IsNullOrWhiteSpace(scheme.Address));
(bool canUseHotWallet, _) = await CanUseHotWallet();
vm.CanUsePayJoin = canUseHotWallet && store