mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22:46 +00:00
Added user details and somewhat imporved error handling
* [UI] Improved: error handling should be slightly better * [UI] Improved: settings now show the user name and picture instead of the user id if network is available.
This commit is contained in:
parent
8a683df2a2
commit
d3a7c17586
11 changed files with 240 additions and 80 deletions
|
@ -68,6 +68,31 @@ Page {
|
|||
running: pageRoot._loading
|
||||
}
|
||||
|
||||
SilicaFlickable {
|
||||
anchors.fill: parent
|
||||
contentHeight: errorContent.height
|
||||
visible: jItem.status == JellyfinItem.Error
|
||||
|
||||
PullDownMenu {
|
||||
busy: jItem.status == JellyfinItem.Loading
|
||||
MenuItem {
|
||||
text: qsTr("Retry")
|
||||
onClicked: jItem.reload()
|
||||
}
|
||||
}
|
||||
|
||||
Column {
|
||||
id: errorContent
|
||||
width: parent.width
|
||||
|
||||
ViewPlaceholder {
|
||||
enabled: true
|
||||
text: qsTr("An error has occured")
|
||||
hintText: jItem.errorString
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
JellyfinItem {
|
||||
id: jItem
|
||||
apiClient: ApiClient
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue