mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
2904018173
Structure of the all subsection of the settings section has the same high level structure Fixes #5650
67 lines
1.5 KiB
QML
67 lines
1.5 KiB
QML
import QtQuick 2.13
|
|
|
|
import shared.status 1.0
|
|
import StatusQ.Controls 0.1
|
|
import StatusQ.Core 0.1
|
|
import StatusQ.Core.Theme 0.1
|
|
import utils 1.0
|
|
|
|
import "../../stores"
|
|
import "../../controls"
|
|
|
|
Item {
|
|
id: root
|
|
signal goBack
|
|
|
|
property WalletStore walletStore
|
|
|
|
Column {
|
|
id: column
|
|
anchors.top: parent.top
|
|
anchors.left: parent.left
|
|
width: parent.width
|
|
|
|
Repeater {
|
|
id: layer1List
|
|
model: walletStore.layer1Networks
|
|
delegate: WalletNetworkDelegate {
|
|
network: model
|
|
}
|
|
}
|
|
|
|
StatusSectionHeadline {
|
|
leftPadding: Style.current.padding
|
|
rightPadding: Style.current.padding
|
|
text: qsTr("Layer 2")
|
|
topPadding: Style.current.bigPadding
|
|
bottomPadding: Style.current.padding
|
|
}
|
|
|
|
Repeater {
|
|
id: layer2List
|
|
model: walletStore.layer2Networks
|
|
delegate: WalletNetworkDelegate {
|
|
network: model
|
|
}
|
|
}
|
|
|
|
Item {
|
|
height: Style.current.bigPadding
|
|
width: parent.width
|
|
}
|
|
|
|
StatusButton {
|
|
// Disable for now
|
|
visible: false
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: Style.current.bigPadding
|
|
id: addCustomNetworkButton
|
|
type: StatusFlatRoundButton.Type.Primary
|
|
text: qsTr("Add Custom Network")
|
|
onClicked: {
|
|
root.goBack()
|
|
}
|
|
}
|
|
}
|
|
}
|