mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
always show arbitrator tickets and signed offers view if arbitrator
This commit is contained in:
parent
0f6f68da69
commit
0f41c8d8b8
1 changed files with 16 additions and 18 deletions
|
@ -155,14 +155,13 @@ public class SupportView extends ActivatableView<TabPane, Void> {
|
||||||
private void updateAgentTabs() {
|
private void updateAgentTabs() {
|
||||||
PubKeyRing myPubKeyRing = keyRing.getPubKeyRing();
|
PubKeyRing myPubKeyRing = keyRing.getPubKeyRing();
|
||||||
|
|
||||||
boolean hasArbitrationCases = !arbitrationManager.getDisputesAsObservableList().isEmpty();
|
|
||||||
if (hasArbitrationCases) {
|
|
||||||
boolean isActiveArbitrator = arbitratorManager.getObservableMap().values().stream()
|
boolean isActiveArbitrator = arbitratorManager.getObservableMap().values().stream()
|
||||||
.anyMatch(e -> e.getPubKeyRing() != null && e.getPubKeyRing().equals(myPubKeyRing));
|
.anyMatch(e -> e.getPubKeyRing() != null && e.getPubKeyRing().equals(myPubKeyRing));
|
||||||
|
|
||||||
// In case a arbitrator has become inactive he still might get disputes from pending trades
|
// In case a arbitrator has become inactive he still might get disputes from pending trades
|
||||||
boolean hasDisputesAsArbitrator = arbitrationManager.getDisputesAsObservableList().stream()
|
boolean hasDisputesAsArbitrator = arbitrationManager.getDisputesAsObservableList().stream()
|
||||||
.anyMatch(d -> d.getAgentPubKeyRing().equals(myPubKeyRing));
|
.anyMatch(d -> d.getAgentPubKeyRing().equals(myPubKeyRing));
|
||||||
|
|
||||||
if (isActiveArbitrator || hasDisputesAsArbitrator) {
|
if (isActiveArbitrator || hasDisputesAsArbitrator) {
|
||||||
if (arbitratorTab == null) {
|
if (arbitratorTab == null) {
|
||||||
arbitratorTab = new Tab();
|
arbitratorTab = new Tab();
|
||||||
|
@ -175,7 +174,6 @@ public class SupportView extends ActivatableView<TabPane, Void> {
|
||||||
root.getTabs().add(signedOfferTab);
|
root.getTabs().add(signedOfferTab);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
boolean isActiveMediator = mediatorManager.getObservableMap().values().stream()
|
boolean isActiveMediator = mediatorManager.getObservableMap().values().stream()
|
||||||
.anyMatch(e -> e.getPubKeyRing() != null && e.getPubKeyRing().equals(myPubKeyRing));
|
.anyMatch(e -> e.getPubKeyRing() != null && e.getPubKeyRing().equals(myPubKeyRing));
|
||||||
|
|
Loading…
Reference in a new issue