Show a placeholder when permissions are loading
This commit is contained in:
@@ -30,9 +30,12 @@ FormCard.FormCardPage {
|
|||||||
|
|
||||||
FormCard.FormHeader {
|
FormCard.FormHeader {
|
||||||
title: i18n("Privileged Users")
|
title: i18n("Privileged Users")
|
||||||
|
visible: permissions.count > 0
|
||||||
}
|
}
|
||||||
FormCard.FormCard {
|
FormCard.FormCard {
|
||||||
|
visible: permissions.count > 0
|
||||||
Repeater {
|
Repeater {
|
||||||
|
id: permissions
|
||||||
model: KSortFilterProxyModel {
|
model: KSortFilterProxyModel {
|
||||||
sourceModel: RoomManager.userListModel
|
sourceModel: RoomManager.userListModel
|
||||||
sortRoleName: "powerLevel"
|
sortRoleName: "powerLevel"
|
||||||
@@ -402,4 +405,14 @@ FormCard.FormCardPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
visible: permissions.count === 0
|
||||||
|
Layout.fillWidth: true
|
||||||
|
implicitHeight: root.height * 0.9
|
||||||
|
Kirigami.LoadingPlaceholder {
|
||||||
|
anchors.centerIn: parent
|
||||||
|
text: i18nc("@placeholder", "Loading…")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user