qml: introduce InfoBanner allowing a clickable sticky message to stay below header and
implement ln utxo reserve check with warning. Clicking shows a suggestion to swap.
This commit is contained in:
committed by
ThomasV
parent
3fd64b60ab
commit
f76218ea83
@@ -33,6 +33,7 @@ ApplicationWindow
|
||||
|
||||
property alias stack: mainStackView
|
||||
property alias keyboardFreeZone: _keyboardFreeZone
|
||||
property alias infobanner: _infobanner
|
||||
|
||||
property variant activeDialogs: []
|
||||
|
||||
@@ -244,22 +245,34 @@ ApplicationWindow
|
||||
}
|
||||
}
|
||||
|
||||
StackView {
|
||||
id: mainStackView
|
||||
ColumnLayout {
|
||||
width: parent.width
|
||||
height: _keyboardFreeZone.height - header.height
|
||||
initialItem: Component {
|
||||
WalletMainView {}
|
||||
spacing: 0
|
||||
|
||||
InfoBanner {
|
||||
id: _infobanner
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
function getRoot() {
|
||||
return mainStackView.get(0)
|
||||
}
|
||||
function pushOnRoot(item) {
|
||||
if (mainStackView.depth > 1) {
|
||||
mainStackView.replace(mainStackView.get(1), item)
|
||||
} else {
|
||||
mainStackView.push(item)
|
||||
StackView {
|
||||
id: mainStackView
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
|
||||
initialItem: Component {
|
||||
WalletMainView {}
|
||||
}
|
||||
|
||||
function getRoot() {
|
||||
return mainStackView.get(0)
|
||||
}
|
||||
function pushOnRoot(item) {
|
||||
if (mainStackView.depth > 1) {
|
||||
mainStackView.replace(mainStackView.get(1), item)
|
||||
} else {
|
||||
mainStackView.push(item)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user