Skip to content

Commit acbb185

Browse files
committed
Display a small loading indicator when orders are cached but a new data is loading
1 parent b8423db commit acbb185

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

WooCommerce/Classes/POS/Presentation/Orders/PointOfSaleOrdersListView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ struct PointOfSaleOrdersListView: View {
1616
VStack(spacing: 0) {
1717
POSPageHeaderView(
1818
title: "Orders",
19+
isLoading: {
20+
if case .loading(let orders) = ordersViewState {
21+
return !orders.isEmpty
22+
}
23+
return false
24+
}(),
1925
backButtonConfiguration: .init(state: .enabled, action: onClose, buttonIcon: "xmark")
2026
)
2127

0 commit comments

Comments
 (0)