mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-10-11 01:58:47 -04:00
disable dispute summary text area and close button after closed and published
This commit is contained in:
parent
f58b983baa
commit
72d1fa47bc
1 changed files with 11 additions and 1 deletions
|
@ -564,6 +564,11 @@ public class DisputeSummaryWindow extends Overlay<DisputeSummaryWindow> {
|
|||
|
||||
summaryNotesTextArea.setPrefHeight(50);
|
||||
summaryNotesTextArea.textProperty().bindBidirectional(disputeResult.summaryNotesProperty());
|
||||
|
||||
if (isClosedAndPublished()) {
|
||||
summaryNotesTextArea.setEditable(false);
|
||||
summaryNotesTextArea.setDisable(true);
|
||||
}
|
||||
}
|
||||
|
||||
private void addButtons(Contract contract) {
|
||||
|
@ -575,7 +580,8 @@ public class DisputeSummaryWindow extends Overlay<DisputeSummaryWindow> {
|
|||
() -> tradeAmountToggleGroup.getSelectedToggle() == null
|
||||
|| summaryNotesTextArea.getText() == null
|
||||
|| summaryNotesTextArea.getText().length() == 0
|
||||
|| !isPayoutAmountValid(),
|
||||
|| !isPayoutAmountValid()
|
||||
|| isClosedAndPublished(),
|
||||
tradeAmountToggleGroup.selectedToggleProperty(),
|
||||
summaryNotesTextArea.textProperty(),
|
||||
buyerPayoutAmountInputTextField.textProperty(),
|
||||
|
@ -625,6 +631,10 @@ public class DisputeSummaryWindow extends Overlay<DisputeSummaryWindow> {
|
|||
});
|
||||
}
|
||||
|
||||
private boolean isClosedAndPublished() {
|
||||
return dispute.isClosed() && trade.isPayoutPublished();
|
||||
}
|
||||
|
||||
private void showPayoutTxConfirmation(Contract contract, MoneroTxWallet payoutTx, ResultHandler resultHandler, ResultHandler cancelHandler) {
|
||||
|
||||
// get buyer and seller destinations (order not preserved)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue