Hide certain information from the transactions page if there are no transactions yet

This commit is contained in:
xmrdsc 2019-04-16 14:42:19 +02:00 committed by dsc
parent e1c429110f
commit b8d2d05fce
No known key found for this signature in database
GPG key ID: 7BBC83D7A8810AAB

View file

@ -93,6 +93,7 @@ Rectangle {
RowLayout { RowLayout {
id: sortAndFilter id: sortAndFilter
visible: root.txCount > 0
property bool collapsed: false property bool collapsed: false
Layout.alignment: Qt.AlignRight | Qt.AlignBottom Layout.alignment: Qt.AlignRight | Qt.AlignBottom
Layout.preferredWidth: 100 Layout.preferredWidth: 100
@ -433,6 +434,7 @@ Rectangle {
RowLayout { RowLayout {
id: pagination id: pagination
visible: root.txCount > 0
spacing: 0 spacing: 0
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
Layout.preferredWidth: childrenRect.width Layout.preferredWidth: childrenRect.width
@ -1318,7 +1320,7 @@ Rectangle {
} }
MoneroComponents.StandardButton { MoneroComponents.StandardButton {
visible: !isIOS visible: !isIOS && root.txCount > 0
small: true small: true
text: qsTr("Export all history") + translationManager.emptyString text: qsTr("Export all history") + translationManager.emptyString
onClicked: { onClicked: {