diff --git a/src/qml/pages/node/NodeSettings.qml b/src/qml/pages/node/NodeSettings.qml index f66ed73303..fe07b68e34 100644 --- a/src/qml/pages/node/NodeSettings.qml +++ b/src/qml/pages/node/NodeSettings.qml @@ -197,18 +197,9 @@ Item { Component { id: peers_page Peers { - navLeftDetail: NavButton { - iconSource: "image://images/caret-left" - text: qsTr("Back") - onClicked: { - nodeSettingsView.pop() - peerTableModel.stopAutoRefresh(); - } - } - navMiddleDetail: Header { - headerBold: true - headerSize: 18 - header: qsTr("Peers") + onBack: { + nodeSettingsView.pop() + peerTableModel.stopAutoRefresh(); } } } diff --git a/src/qml/pages/node/Peers.qml b/src/qml/pages/node/Peers.qml index 2dca9afa42..159f7f5d0d 100644 --- a/src/qml/pages/node/Peers.qml +++ b/src/qml/pages/node/Peers.qml @@ -9,12 +9,22 @@ import "../../controls" import "../../components" Page { + signal back + + id: root background: null - property alias navLeftDetail: navbar.leftDetail - property alias navMiddleDetail: navbar.middleDetail - header: NavigationBar { - id: navbar + header: NavigationBar2 { + leftItem: NavButton { + iconSource: "image://images/caret-left" + text: qsTr("Back") + onClicked: root.back() + } + centerItem: Header { + headerBold: true + headerSize: 18 + header: qsTr("Peers") + } } ListView {