Skip to content

Commit 675552e

Browse files
committed
Add prefix to sync status enum
1 parent 5063d71 commit 675552e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Creation/ProductsSection/AddProductToOrderViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ final class AddProductToOrderViewModel: AddProductToOrderViewModelProtocol {
4848

4949
/// Current sync status; used to determine what list view to display.
5050
///
51-
@Published private(set) var syncStatus: SyncStatus?
51+
@Published private(set) var syncStatus: AddProductToOrderSyncStatus?
5252

5353
/// SyncCoordinator: Keeps tracks of which pages have been refreshed, and encapsulates the "What should we sync now" logic.
5454
///

WooCommerce/Classes/ViewRelated/Orders/Order Creation/ProductsSection/AddProductToOrderViewModelProtocol.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Yosemite
22

3-
/// Represents possible statuses for syncing products
3+
/// Represents possible statuses for syncing a list of products or product variations
44
///
5-
enum SyncStatus {
5+
enum AddProductToOrderSyncStatus {
66
case firstPageSync
77
case results
88
case empty
@@ -17,7 +17,7 @@ protocol AddProductToOrderViewModelProtocol: ObservableObject {
1717

1818
/// Current sync status; used to determine what list view to display.
1919
///
20-
var syncStatus: SyncStatus? { get }
20+
var syncStatus: AddProductToOrderSyncStatus? { get }
2121

2222
/// Tracks if the infinite scroll indicator should be displayed
2323
///

0 commit comments

Comments
 (0)