Browse Source

qml: add placeholder text for transaction history and channel list

master
Sander van Grieken 3 years ago
parent
commit
89aea77213
  1. 11
      electrum/gui/qml/components/Channels.qml
  2. 10
      electrum/gui/qml/components/History.qml

11
electrum/gui/qml/components/Channels.qml

@ -121,6 +121,17 @@ Pane {
}
ScrollIndicator.vertical: ScrollIndicator { }
Label {
visible: Daemon.currentWallet.channelModel.rowCount() == 0
anchors.centerIn: parent
width: listview.width * 4/5
font.pixelSize: constants.fontSizeXXLarge
color: constants.mutedForeground
text: qsTr('You have no Lightning channels yet in this wallet')
wrapMode: Text.Wrap
horizontalAlignment: Text.AlignHCenter
}
}
}
}

10
electrum/gui/qml/components/History.qml

@ -82,6 +82,16 @@ Pane {
ScrollIndicator.vertical: ScrollIndicator { }
Label {
visible: Daemon.currentWallet.historyModel.rowCount() == 0
anchors.centerIn: parent
width: listview.width * 4/5
font.pixelSize: constants.fontSizeXXLarge
color: constants.mutedForeground
text: qsTr('No transactions yet in this wallet')
wrapMode: Text.Wrap
horizontalAlignment: Text.AlignHCenter
}
}
MouseArea {

Loading…
Cancel
Save