mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-23 03:59:36 +00:00
fix legacy tab (#233)
This commit is contained in:
parent
71a592cbb8
commit
06cd07157c
1 changed files with 5 additions and 9 deletions
|
@ -118,21 +118,17 @@ public class SupportView extends ActivatableView<TabPane, Void> {
|
||||||
tradersRefundDisputesTab.setClosable(false);
|
tradersRefundDisputesTab.setClosable(false);
|
||||||
root.getTabs().add(tradersRefundDisputesTab);
|
root.getTabs().add(tradersRefundDisputesTab);
|
||||||
|
|
||||||
// We only show tradersArbitrationDisputesTab if we have cases
|
|
||||||
if (!arbitrationManager.getDisputesAsObservableList().isEmpty()) {
|
|
||||||
tradersArbitrationDisputesTab = new Tab();
|
tradersArbitrationDisputesTab = new Tab();
|
||||||
tradersArbitrationDisputesTab.setClosable(false);
|
tradersArbitrationDisputesTab.setClosable(false);
|
||||||
root.getTabs().add(tradersArbitrationDisputesTab);
|
root.getTabs().add(tradersArbitrationDisputesTab);
|
||||||
}
|
|
||||||
|
|
||||||
// Has to be called before loadView
|
// Has to be called before loadView
|
||||||
updateAgentTabs();
|
updateAgentTabs();
|
||||||
|
|
||||||
tradersMediationDisputesTab.setText(Res.get("support.tab.mediation.support").toUpperCase());
|
tradersMediationDisputesTab.setText(Res.get("support.tab.mediation.support").toUpperCase());
|
||||||
tradersRefundDisputesTab.setText(Res.get("support.tab.arbitration.support").toUpperCase());
|
tradersRefundDisputesTab.setText(Res.get("support.tab.arbitration.support").toUpperCase());
|
||||||
if (tradersArbitrationDisputesTab != null) {
|
|
||||||
tradersArbitrationDisputesTab.setText(Res.get("support.tab.legacyArbitration.support").toUpperCase());
|
tradersArbitrationDisputesTab.setText(Res.get("support.tab.legacyArbitration.support").toUpperCase());
|
||||||
}
|
|
||||||
navigationListener = (viewPath, data) -> {
|
navigationListener = (viewPath, data) -> {
|
||||||
if (viewPath.size() == 3 && viewPath.indexOf(SupportView.class) == 1)
|
if (viewPath.size() == 3 && viewPath.indexOf(SupportView.class) == 1)
|
||||||
loadView(viewPath.tip());
|
loadView(viewPath.tip());
|
||||||
|
|
Loading…
Reference in a new issue