Skip to content

Commit

Permalink
Merge pull request #2706 from HenrikJannsen/Dont-activate-the-show-cl…
Browse files Browse the repository at this point in the history
…osed-cases-tab-at-close-ticket

Dont activate the “show closed cases” tab at close ticket
  • Loading branch information
HenrikJannsen authored Aug 27, 2024
2 parents ab9f551 + 101538a commit 17e2b7b
Showing 1 changed file with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,21 @@ void onSelectItem(MediatorView.ListItem item) {

void onToggleClosedCases() {
model.getShowClosedCases().set(!model.getShowClosedCases().get());
applyShowClosedCasesChange();
}

private void closeCaseHandler() {
applyShowClosedCasesChange();
}

private void reOpenCaseHandler() {
applyShowClosedCasesChange();
}

private void applyShowClosedCasesChange() {
mediationCaseHeader.setShowClosedCases(model.getShowClosedCases().get());
// Need a predicate change to trigger a list update
applyFilteredListPredicate(!model.getShowClosedCases().get());
applyFilteredListPredicate(model.getShowClosedCases().get());
}

Expand All @@ -200,7 +214,8 @@ private void update() {
}
}

private BisqEasyOpenTradeChannel findOrCreateChannel(MediationRequest mediationRequest, UserIdentity myUserIdentity) {
private BisqEasyOpenTradeChannel findOrCreateChannel(MediationRequest mediationRequest,
UserIdentity myUserIdentity) {
BisqEasyContract contract = mediationRequest.getContract();
return bisqEasyOpenTradeChannelService.mediatorFindOrCreatesChannel(
mediationRequest.getTradeId(),
Expand All @@ -209,12 +224,4 @@ private BisqEasyOpenTradeChannel findOrCreateChannel(MediationRequest mediationR
mediationRequest.getRequester(),
mediationRequest.getPeer());
}

private void closeCaseHandler() {
onToggleClosedCases();
}

private void reOpenCaseHandler() {
onToggleClosedCases();
}
}

0 comments on commit 17e2b7b

Please sign in to comment.