Show spinner while push rule list is loading
This commit is contained in:
parent
6aec20b4d8
commit
df979ec5fa
|
@ -51,6 +51,22 @@ HListView {
|
||||||
model: ModelStore.get(userId, "pushrules")
|
model: ModelStore.get(userId, "pushrules")
|
||||||
implicitHeight: Math.min(window.height, contentHeight + bottomMargin)
|
implicitHeight: Math.min(window.height, contentHeight + bottomMargin)
|
||||||
|
|
||||||
|
header: HColumnLayout {
|
||||||
|
width: root.width
|
||||||
|
|
||||||
|
HLoader {
|
||||||
|
source: "../../Base/HBusyIndicator.qml"
|
||||||
|
active: root.model.count === 0
|
||||||
|
opacity: active ? 1 : 0
|
||||||
|
visible: opacity > 0
|
||||||
|
|
||||||
|
Behavior on opacity { HNumberAnimation {} }
|
||||||
|
|
||||||
|
Layout.alignment: Qt.AlignCenter
|
||||||
|
Layout.topMargin: theme.spacing
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
section.property: "kind"
|
section.property: "kind"
|
||||||
section.delegate: HLabel {
|
section.delegate: HLabel {
|
||||||
width: root.width
|
width: root.width
|
||||||
|
@ -88,9 +104,6 @@ HListView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.fillHeight: true
|
|
||||||
|
|
||||||
FlickShortcuts {
|
FlickShortcuts {
|
||||||
flickable: root
|
flickable: root
|
||||||
active: ! mainUI.debugConsole.visible && root.enableFlickShortcuts
|
active: ! mainUI.debugConsole.visible && root.enableFlickShortcuts
|
||||||
|
|
Loading…
Reference in New Issue
Block a user