mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
always show arbitrator tickets and signed offers view if arbitrator
This commit is contained in:
parent
0f6f68da69
commit
0f41c8d8b8
@ -155,25 +155,23 @@ 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();
|
boolean isActiveArbitrator = arbitratorManager.getObservableMap().values().stream()
|
||||||
if (hasArbitrationCases) {
|
.anyMatch(e -> e.getPubKeyRing() != null && e.getPubKeyRing().equals(myPubKeyRing));
|
||||||
boolean isActiveArbitrator = arbitratorManager.getObservableMap().values().stream()
|
|
||||||
.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 (arbitratorTab == null) {
|
if (isActiveArbitrator || hasDisputesAsArbitrator) {
|
||||||
arbitratorTab = new Tab();
|
if (arbitratorTab == null) {
|
||||||
arbitratorTab.setClosable(false);
|
arbitratorTab = new Tab();
|
||||||
root.getTabs().add(arbitratorTab);
|
arbitratorTab.setClosable(false);
|
||||||
}
|
root.getTabs().add(arbitratorTab);
|
||||||
if (signedOfferTab == null) {
|
}
|
||||||
signedOfferTab = new Tab();
|
if (signedOfferTab == null) {
|
||||||
signedOfferTab.setClosable(false);
|
signedOfferTab = new Tab();
|
||||||
root.getTabs().add(signedOfferTab);
|
signedOfferTab.setClosable(false);
|
||||||
}
|
root.getTabs().add(signedOfferTab);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user