mirror of
https://github.com/retoaccess1/haveno-reto.git
synced 2024-12-12 04:43:32 +01:00
fix legacy tab (#233)
This commit is contained in:
parent
71a592cbb8
commit
06cd07157c
@ -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 New Issue
Block a user