mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
fix(StatusModal): render footer correctly based on showFooter
flag
This commit is contained in:
parent
617ca649b3
commit
2ea3c76bf5
@ -67,7 +67,7 @@ QC.Popup {
|
||||
id: footerImpl
|
||||
anchors.bottom: parent.bottom
|
||||
width: visible ? parent.width : 0
|
||||
visible: statusModal.showFooter
|
||||
showFooter: statusModal.showFooter
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,7 @@ Rectangle {
|
||||
|
||||
property list<Item> leftButtons
|
||||
property list<StatusBaseButton> rightButtons
|
||||
property bool showFooter: true
|
||||
|
||||
radius: 8
|
||||
|
||||
@ -30,7 +31,7 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
implicitHeight: visible ? rootLayout.implicitHeight + 30 : 0
|
||||
implicitHeight: rootLayout.implicitHeight + 30
|
||||
|
||||
RowLayout {
|
||||
id: rootLayout
|
||||
@ -43,6 +44,7 @@ Rectangle {
|
||||
Row {
|
||||
id: leftButtonsLayout
|
||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
|
||||
visible: statusModalFooter.showFooter
|
||||
|
||||
spacing: 16
|
||||
}
|
||||
@ -55,9 +57,9 @@ Rectangle {
|
||||
Row {
|
||||
id: rightButtonsLayout
|
||||
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
|
||||
visible: statusModalFooter.showFooter
|
||||
|
||||
spacing: 16
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user