diff --git a/BTCPayServer/Controllers/WalletsController.cs b/BTCPayServer/Controllers/WalletsController.cs index 7255ea76d..229346015 100644 --- a/BTCPayServer/Controllers/WalletsController.cs +++ b/BTCPayServer/Controllers/WalletsController.cs @@ -146,7 +146,7 @@ namespace BTCPayServer.Controllers [Route("{walletId}/send")] public async Task WalletSend( [ModelBinder(typeof(WalletIdModelBinder))] - WalletId walletId, string defaultDestination = null, string defaultAmount = null, bool advancedMode = false) + WalletId walletId, string defaultDestination = null, string defaultAmount = null) { if (walletId?.StoreId == null) return NotFound(); @@ -195,7 +195,6 @@ namespace BTCPayServer.Controllers } catch (Exception ex) { model.RateError = ex.Message; } } - model.AdvancedMode = advancedMode; return View(model); } @@ -203,7 +202,7 @@ namespace BTCPayServer.Controllers [Route("{walletId}/send")] public async Task WalletSend( [ModelBinder(typeof(WalletIdModelBinder))] - WalletId walletId, WalletSendModel vm, string command = null) + WalletId walletId, WalletSendModel vm) { if (walletId?.StoreId == null) return NotFound(); @@ -214,13 +213,6 @@ namespace BTCPayServer.Controllers if (network == null) return NotFound(); - if (command == "noob" || command == "expert") - { - ModelState.Clear(); - vm.AdvancedMode = command == "expert"; - return View(vm); - } - var destination = ParseDestination(vm.Destination, network.NBitcoinNetwork); if (destination == null) ModelState.AddModelError(nameof(vm.Destination), "Invalid address"); diff --git a/BTCPayServer/Models/WalletViewModels/WalletSendModel.cs b/BTCPayServer/Models/WalletViewModels/WalletSendModel.cs index 7faa04a13..6668ab46d 100644 --- a/BTCPayServer/Models/WalletViewModels/WalletSendModel.cs +++ b/BTCPayServer/Models/WalletViewModels/WalletSendModel.cs @@ -31,7 +31,6 @@ namespace BTCPayServer.Models.WalletViewModels [Display(Name = "Make sure no change UTXO is created")] public bool NoChange { get; set; } - public bool AdvancedMode { get; set; } public decimal? Rate { get; set; } public int Divisibility { get; set; } public string Fiat { get; set; } diff --git a/BTCPayServer/Views/Wallets/WalletSend.cshtml b/BTCPayServer/Views/Wallets/WalletSend.cshtml index 1323bacaf..f7a90747f 100644 --- a/BTCPayServer/Views/Wallets/WalletSend.cshtml +++ b/BTCPayServer/Views/Wallets/WalletSend.cshtml @@ -55,23 +55,28 @@ - @if (Model.AdvancedMode) - { -
- - - + +
+
+

+ +

+
+
+
+
+ + + +
+
+
+
+
+
- } - - @if (Model.AdvancedMode) - { - - } - else - { - - }