Commit 33a618ee authored by Volker Krause's avatar Volker Krause

Show loading indicator and error messages

parent 5bc904d4
......@@ -173,7 +173,18 @@ Kirigami.ScrollablePage {
clip: true
delegate: journeyDelegate
model: _journeyQueryController.journeys
}
// TODO loading state, error message display
QQC2.BusyIndicator {
anchors.centerIn: parent
running: _journeyQueryController.loading
}
QQC2.Label {
anchors.centerIn: parent
width: parent.width
text: _journeyQueryController.errorMessage
color: Kirigami.Theme.negativeTextColor
wrapMode: Text.Wrap
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment