File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
WooCommerce/Classes/ViewRelated/Orders/Order Details/Order Summary Section Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import Yosemite
33import Gridicons
44
55struct OrderStatusPresentation {
6- let status : OrderStatusEnum
7- let statusName : String
6+ let style : OrderStatusEnum
7+ let title : String
88}
99
1010/// The ViewModel for `SummaryTableViewCell`.
@@ -29,8 +29,8 @@ struct SummaryTableViewCellViewModel {
2929 orderNumber = order. number
3030
3131 presentation = OrderStatusPresentation (
32- status : status? . status ?? OrderStatusEnum ( rawValue: order. statusKey) ,
33- statusName : status? . name ?? order. statusKey
32+ style : status? . status ?? OrderStatusEnum ( rawValue: order. statusKey) ,
33+ title : status? . name ?? order. statusKey
3434 )
3535
3636 self . calendar = calendar
@@ -97,8 +97,8 @@ final class SummaryTableViewCell: UITableViewCell {
9797 /// Displays the specified OrderStatus, and applies the right Label Style
9898 ///
9999 private func display( presentation: OrderStatusPresentation ) {
100- paymentStatusLabel. applyStyle ( for: presentation. status )
101- paymentStatusLabel. text = presentation. statusName
100+ paymentStatusLabel. applyStyle ( for: presentation. style )
101+ paymentStatusLabel. text = presentation. title
102102 }
103103
104104 // MARK: - Overridden Methods
You can’t perform that action at this time.
0 commit comments