status-desktop/ui/app/AppLayouts/Profile/views/wallet/NetworksView.qml

67 lines
1.5 KiB
QML
Raw Normal View History

import QtQuick 2.13
import shared.status 1.0
2022-03-02 12:54:58 +00:00
import StatusQ.Controls 0.1
import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
import utils 1.0
import "../../stores"
2022-03-02 12:54:58 +00:00
import "../../controls"
2022-03-02 12:54:58 +00:00
Item {
id: root
2022-03-02 12:54:58 +00:00
signal goBack
property WalletStore walletStore
2022-03-02 12:54:58 +00:00
Column {
id: column
anchors.top: parent.top
anchors.left: parent.left
width: parent.width
2022-03-02 12:54:58 +00:00
Repeater {
id: layer1List
model: walletStore.layer1Networks
delegate: WalletNetworkDelegate {
network: model
}
}
StatusSectionHeadline {
leftPadding: Style.current.padding
rightPadding: Style.current.padding
2022-03-02 12:54:58 +00:00
text: qsTr("Layer 2")
topPadding: Style.current.bigPadding
bottomPadding: Style.current.padding
}
Repeater {
id: layer2List
model: walletStore.layer2Networks
delegate: WalletNetworkDelegate {
network: model
}
}
2022-03-15 13:38:20 +00:00
Item {
height: Style.current.bigPadding
width: parent.width
}
2022-03-15 13:38:20 +00:00
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()
2022-03-02 12:54:58 +00:00
}
}
}
2022-03-15 13:38:20 +00:00
}