Only show Footer when the packagelist is paginated

It doesn't make sense to show a footer when items are retrieved in one
go. Except when an error occurs.

Contributes to CURA-8558
This commit is contained in:
j.spijker@ultimaker.com 2021-11-02 14:33:53 +01:00 committed by Jelle Spijker
parent c4c99f6657
commit 3f700e5d0c
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
3 changed files with 9 additions and 1 deletions

View file

@ -71,7 +71,8 @@ ScrollView
footer: Item
{
width: parent.width
height: UM.Theme.getSize("card").height + packagesListview.spacing
height: model.hasFooter || packages.model.errorMessage != "" ? UM.Theme.getSize("card").height + packagesListview.spacing : 0
visible: model.hasFooter || packages.model.errorMessage != ""
Button
{
id: loadMoreButton