mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
show change output when signing
This commit is contained in:
parent
f3a7d583a5
commit
f35b3d46a1
2 changed files with 10 additions and 0 deletions
|
@ -39,6 +39,9 @@ public class OutputController extends TransactionFormController implements Initi
|
||||||
@FXML
|
@FXML
|
||||||
private CopyableLabel to;
|
private CopyableLabel to;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private CopyableLabel change;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private AddressLabel address;
|
private AddressLabel address;
|
||||||
|
|
||||||
|
@ -81,6 +84,12 @@ public class OutputController extends TransactionFormController implements Initi
|
||||||
//ignore
|
//ignore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
change.managedProperty().bind(change.visibleProperty());
|
||||||
|
change.setVisible(false);
|
||||||
|
outputForm.signingWalletProperty().addListener((observable, oldValue, signingWallet) -> {
|
||||||
|
change.setVisible(signingWallet != null && signingWallet.isWalletOutputScript(txOutput.getScript()));
|
||||||
|
});
|
||||||
|
|
||||||
spentField.managedProperty().bind(spentField.visibleProperty());
|
spentField.managedProperty().bind(spentField.visibleProperty());
|
||||||
spentByField.managedProperty().bind(spentByField.visibleProperty());
|
spentByField.managedProperty().bind(spentByField.visibleProperty());
|
||||||
spentByField.setVisible(false);
|
spentByField.setVisible(false);
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
<CoinLabel fx:id="value"/>
|
<CoinLabel fx:id="value"/>
|
||||||
<CopyableLabel fx:id="to" text="to" />
|
<CopyableLabel fx:id="to" text="to" />
|
||||||
<AddressLabel fx:id="address" />
|
<AddressLabel fx:id="address" />
|
||||||
|
<CopyableLabel fx:id="change" text="(Change)" />
|
||||||
</Field>
|
</Field>
|
||||||
<Field fx:id="spentField" text="Spent?">
|
<Field fx:id="spentField" text="Spent?">
|
||||||
<Label fx:id="spent" />
|
<Label fx:id="spent" />
|
||||||
|
|
Loading…
Reference in a new issue