Make WalletSend match exactly the design of before without additional destination

This commit is contained in:
nicolas.dorier
2019-05-21 18:44:49 +09:00
parent 88c931ec13
commit 06a35787aa
4 changed files with 84 additions and 70 deletions

View File

@@ -226,12 +226,13 @@ namespace BTCPayServer.Controllers
if (command == "add-output")
{
ModelState.Clear();
vm.Outputs.Add(new WalletSendModel.TransactionOutput());
return View(vm);
}
if (command.StartsWith("remove-output", StringComparison.InvariantCultureIgnoreCase))
{
ModelState.Clear();
var index = int.Parse(command.Substring(command.IndexOf(":",StringComparison.InvariantCultureIgnoreCase) + 1), CultureInfo.InvariantCulture);
vm.Outputs.RemoveAt(index);
return View(vm);