Hide loading item and show info message when on the devices page and not logged in.

This commit is contained in:
James Graham
2022-12-11 16:47:16 +00:00
parent 6b3f44e923
commit 25c7b7b780

View File

@@ -27,7 +27,7 @@ Kirigami.ScrollablePage {
}
MobileForm.AbstractFormDelegate {
Layout.fillWidth: true
visible: deviceRepeater.count === 0 // We can assume 0 means loading since there is at least one device
visible: Controller.activeConnection && deviceRepeater.count === 0 // We can assume 0 means loading since there is at least one device
contentItem: Kirigami.LoadingPlaceholder { }
}
Repeater {
@@ -160,6 +160,14 @@ Kirigami.ScrollablePage {
}
}
}
Kirigami.InlineMessage {
Layout.fillWidth: true
Layout.maximumWidth: Kirigami.Units.gridUnit * 30
Layout.alignment: Qt.AlignHCenter
text: i18n("Please login to view the signed-in devices for your account.")
type: Kirigami.MessageType.Information
visible: !Controller.activeConnection
}
}
Kirigami.OverlaySheet {