Skip to content

Commit 8ea8883

Browse files
committed
Added case for Coupons
1 parent b74b1db commit 8ea8883

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/DiscountTypeBottomSheetListSelectorCommand.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ final class DiscountTypeBottomSheetListSelectorCommand: BottomSheetListSelectorC
2929
imageTintColor: .gray(.shade20),
3030
numberOfLinesForText: 0,
3131
isSelected: isSelected(model: model),
32-
isActionable: false)
32+
isActionable: false,
33+
showsDisclosureIndicator: true)
3334
cell.updateUI(viewModel: viewModel)
3435
}
3536

WooCommerce/Classes/ViewRelated/Products/Edit Product/Cells/ImageAndTitleAndTextTableViewCell.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ extension ImageAndTitleAndTextTableViewCell {
163163
accessoryType = viewModel.showsDisclosureIndicator ? .disclosureIndicator : .none
164164
if viewModel.isActionable && viewModel.showsDisclosureIndicator == false {
165165
accessoryType = .none
166+
} else if viewModel.isActionable == false && viewModel.showsDisclosureIndicator && viewModel.isSelected {
167+
accessoryType = .checkmark
168+
} else if viewModel.isActionable == false && viewModel.showsDisclosureIndicator && viewModel.isSelected == false {
169+
accessoryType = .none
166170
}
167171
selectionStyle = viewModel.isActionable ? .default: .none
168172
accessoryView = nil

0 commit comments

Comments
 (0)