Add loading indicator while loading conversations

This commit is contained in:
Simon Redman 2019-08-24 10:18:17 -07:00
parent f65737da21
commit 9c91042441

View file

@ -33,7 +33,7 @@ Kirigami.ScrollablePage
id: page
ToolTip {
id: noDevicesWarning
visible: !devicesCombo.enabled
visible: !page.deviceConnected
timeout: -1
text: "⚠️ " + i18n("No devices available") + " ⚠️"
@ -72,6 +72,17 @@ Kirigami.ScrollablePage
Kirigami.AboutPage {}
}
ColumnLayout {
id: loadingMessage
visible: deviceConnected && view.count == 0
anchors.centerIn: parent
BusyIndicator {
running: loadingMessage.visible
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
}
}
property string initialMessage
property string initialDevice