fix: loading indicator for sticker market

Fixes #1729
This commit is contained in:
Richard Ramos 2021-02-09 09:57:53 -04:00 committed by Iuri Matias
parent 040b2020dd
commit 9cb7573189
1 changed files with 14 additions and 19 deletions

View File

@ -148,27 +148,22 @@ Popup {
root.close()
}
}
StatusStickerList {
id: loadingGrid
visible: chatsModel.stickers.recent.rowCount() === 0
interactive: false
model: new Array(20)
delegate: Item {
width: stickerGrid.cellWidth
height: stickerGrid.cellHeight
Column {
anchors.fill: parent
anchors.topMargin: 4
anchors.leftMargin: 4
Rectangle {
width: 80
height: 80
radius: width / 2
color: Style.current.backgroundHover
}
}
Component {
id: loadingImageComponent
LoadingImage {
width: 50
height: 50
}
}
Loader {
id: loadingGrid
active: chatsModel.stickers.recent.rowCount() === 0
sourceComponent: loadingImageComponent
anchors.centerIn: parent
}
}
Item {