Showing
1 changed file
with
9 additions
and
4 deletions
| ... | @@ -81,7 +81,9 @@ import SwiftEventBus | ... | @@ -81,7 +81,9 @@ import SwiftEventBus |
| 81 | 81 | ||
| 82 | var forYouExpanded: Bool = false; | 82 | var forYouExpanded: Bool = false; |
| 83 | var showSpinner: Bool = false; | 83 | var showSpinner: Bool = false; |
| 84 | - var showActiveCouponsBanners: Bool = false; | 84 | + // TODO: UNCOMMENT if ActiveCouponsBanners needs to be hidden again |
| 85 | +// var showActiveCouponsBanners: Bool = false; | ||
| 86 | + var showActiveCouponsBanners: Bool = true; | ||
| 85 | var showEmptyView: Bool = false; | 87 | var showEmptyView: Bool = false; |
| 86 | 88 | ||
| 87 | 89 | ||
| ... | @@ -768,7 +770,8 @@ import SwiftEventBus | ... | @@ -768,7 +770,8 @@ import SwiftEventBus |
| 768 | self.showSpinner = true | 770 | self.showSpinner = true |
| 769 | 771 | ||
| 770 | if (self.dfyCoupons.count == 0 && self.unifiedCoupons.count == 0 && self.smCoupons.count == 0 && self.coupons.count == 0) { | 772 | if (self.dfyCoupons.count == 0 && self.unifiedCoupons.count == 0 && self.smCoupons.count == 0 && self.coupons.count == 0) { |
| 771 | - self.showActiveCouponsBanners = false | 773 | + // TODO: UNCOMMENT if ActiveCouponsBanners needs to be hidden again |
| 774 | +// self.showActiveCouponsBanners = false | ||
| 772 | 775 | ||
| 773 | } else { | 776 | } else { |
| 774 | self.showActiveCouponsBanners = true | 777 | self.showActiveCouponsBanners = true |
| ... | @@ -778,7 +781,8 @@ import SwiftEventBus | ... | @@ -778,7 +781,8 @@ import SwiftEventBus |
| 778 | self.showSpinner = false | 781 | self.showSpinner = false |
| 779 | 782 | ||
| 780 | if (self.dfyCoupons.count == 0 && self.unifiedCoupons.count == 0 && self.smCoupons.count == 0 && self.coupons.count == 0) { | 783 | if (self.dfyCoupons.count == 0 && self.unifiedCoupons.count == 0 && self.smCoupons.count == 0 && self.coupons.count == 0) { |
| 781 | - self.showActiveCouponsBanners = false | 784 | + // TODO: UNCOMMENT if ActiveCouponsBanners needs to be hidden again |
| 785 | +// self.showActiveCouponsBanners = false | ||
| 782 | 786 | ||
| 783 | if (swiftApi().getShowVouchersBanner() == "null") { | 787 | if (swiftApi().getShowVouchersBanner() == "null") { |
| 784 | // TODO: UNCOMMENT if emptyView is needed again | 788 | // TODO: UNCOMMENT if emptyView is needed again |
| ... | @@ -1404,7 +1408,8 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -1404,7 +1408,8 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ |
| 1404 | if (indexPath.section == 0) { | 1408 | if (indexPath.section == 0) { |
| 1405 | let cell = tableView.dequeueReusableCell(withIdentifier: "WalletActiveCouponsScrollTableViewCellId", for: indexPath) as! WalletActiveCouponsScrollTableViewCell | 1409 | let cell = tableView.dequeueReusableCell(withIdentifier: "WalletActiveCouponsScrollTableViewCellId", for: indexPath) as! WalletActiveCouponsScrollTableViewCell |
| 1406 | // cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: self.unifiedCoupons.count, gfyCount: self.coupons.count, boxCount: self.boxCoupons.count) | 1410 | // cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: self.unifiedCoupons.count, gfyCount: self.coupons.count, boxCount: self.boxCoupons.count) |
| 1407 | - let smCount = self.unifiedCoupons.count + self.smCoupons.count | 1411 | +// let smCount = self.unifiedCoupons.count + self.smCoupons.count |
| 1412 | + let smCount = 1 | ||
| 1408 | cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: smCount, gfyCount: self.coupons.count, boxCount: 0) | 1413 | cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: smCount, gfyCount: self.coupons.count, boxCount: 0) |
| 1409 | cell.parent = self | 1414 | cell.parent = self |
| 1410 | return cell | 1415 | return cell | ... | ... |
-
Please register or login to post a comment