mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Extract reusable code to baseService. Add more validation
This commit is contained in:
parent
316a305f53
commit
3003964bf3
2 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ public class ProposalListItem implements BsqBlockChain.Listener {
|
|||
case UNDEFINED:
|
||||
break;
|
||||
case PROPOSAL:
|
||||
if (proposalService.isMine(proposal)) {
|
||||
if (proposalService.isMine(proposal.getProposalPayload())) {
|
||||
actionButton.setVisible(!isTxInPastCycle);
|
||||
actionButtonIconView.setVisible(actionButton.isVisible());
|
||||
actionButton.setText(Res.get("shared.remove"));
|
||||
|
|
|
@ -266,7 +266,7 @@ public class ActiveProposalsView extends BaseProposalView implements BsqBalanceL
|
|||
final Proposal proposal = selectedProposalListItem.getProposal();
|
||||
switch (phase) {
|
||||
case PROPOSAL:
|
||||
if (proposalService.isMine(proposal)) {
|
||||
if (proposalService.isMine(proposal.getProposalPayload())) {
|
||||
if (removeButton == null) {
|
||||
removeButton = addButtonAfterGroup(detailsGridPane, proposalDisplay.incrementAndGetGridRow(), Res.get("dao.proposal.active.remove"));
|
||||
removeButton.setOnAction(event -> onRemove());
|
||||
|
|
Loading…
Add table
Reference in a new issue