Manos Chorianopoulos

hide active coupons count at Myrewards

......@@ -39,18 +39,22 @@ import UIKit
if (badgeId == "dfy") {
badgeImage.image = UIImage(named: "wallet_banner_dfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
badgeLabel.text = "DEALS FOR YOU"
badgeCountView.isHidden = false
} else if (badgeId == "sm") {
badgeImage.image = UIImage(named: "wallet_banner_sm", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
badgeLabel.text = "SUPERMARKET DEALS"
badgeCountView.isHidden = false
} else if (badgeId == "gfy") {
badgeImage.image = UIImage(named: "wallet_banner_gfy", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
badgeLabel.text = "FREE COUPONS"
badgeCountView.isHidden = false
} else if (badgeId == "box") {
badgeImage.image = UIImage(named: "wallet_banner_box", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
badgeLabel.text = "BOX"
badgeCountView.isHidden = true
}
badgeCountLabel.text = String(badgeCount)
......
......@@ -1388,7 +1388,8 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
if (indexPath.section == 0) {
let cell = tableView.dequeueReusableCell(withIdentifier: "WalletActiveCouponsScrollTableViewCellId", for: indexPath) as! WalletActiveCouponsScrollTableViewCell
cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: self.unifiedCoupons.count, gfyCount: self.coupons.count, boxCount: self.boxCoupons.count)
// cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: self.unifiedCoupons.count, gfyCount: self.coupons.count, boxCount: self.boxCoupons.count)
cell.configureCell(dfyCount: self.dfyCoupons.count, smCount: self.unifiedCoupons.count, gfyCount: self.coupons.count, boxCount: 0)
cell.parent = self
return cell
......