mirror of
https://github.com/rgriebl/brickstore.git
synced 2026-05-24 09:48:23 -05:00
Mobile: add a "nothing to see here" label to empty lists
This commit is contained in:
@@ -41,6 +41,15 @@ FullscreenDialog {
|
||||
ScrollIndicator.vertical: ScrollIndicator { }
|
||||
FlashScrollIndicators { id: flashScroller; target: table }
|
||||
|
||||
Label {
|
||||
anchors.fill: parent
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
text: qsTr("No %1 carts").arg(domesticOrInternational.currentIndex ? qsTr("international")
|
||||
: qsTr("domestic"));
|
||||
visible: table.count === 0
|
||||
}
|
||||
|
||||
model: BS.SortFilterProxyModel {
|
||||
id: sortFilterModel
|
||||
sourceModel: BL.BrickLink.carts
|
||||
|
||||
@@ -59,6 +59,15 @@ FullscreenDialog {
|
||||
ScrollIndicator.vertical: ScrollIndicator { }
|
||||
FlashScrollIndicators { id: flashScroller; target: table }
|
||||
|
||||
Label {
|
||||
anchors.fill: parent
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
text: qsTr("No %1 orders").arg(receivedOrPlaced.currentIndex ? qsTr("placed")
|
||||
: qsTr("received"))
|
||||
visible: table.count === 0
|
||||
}
|
||||
|
||||
model: BS.SortFilterProxyModel {
|
||||
id: sortFilterModel
|
||||
sourceModel: BL.BrickLink.orders
|
||||
|
||||
@@ -34,6 +34,14 @@ FullscreenDialog {
|
||||
ScrollIndicator.vertical: ScrollIndicator { }
|
||||
FlashScrollIndicators { id: flashScroller; target: table }
|
||||
|
||||
Label {
|
||||
anchors.fill: parent
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
text: qsTr("No wanted lists")
|
||||
visible: table.count === 0
|
||||
}
|
||||
|
||||
model: BS.SortFilterProxyModel {
|
||||
id: sortFilterModel
|
||||
sourceModel: BL.BrickLink.wantedLists
|
||||
|
||||
Reference in New Issue
Block a user