[ios] Hid price label in ppp.

This commit is contained in:
VladiMihaylenko 2017-10-25 20:21:42 +03:00 committed by r.kuznetsov
parent fb63424a85
commit 213318c7f1
2 changed files with 4 additions and 2 deletions

View file

@ -248,7 +248,8 @@ array<Class, 8> const kPreviewCells = {{[_MWMPPPTitle class],
[reviewCell configWithRating:data.ugc.summaryRating
canAddReview:data.ugc.isUGCUpdateEmpty
reviewsCount:data.ugc.totalReviewsCount
priceSetter:^(UILabel * _Nonnull) {
priceSetter:^(UILabel * pricingLabel) {
pricingLabel.text = @"";
}
onAddReview:^{
[MWMPlacePageManagerHelper showUGCAddReview:MWMRatingSummaryViewValueTypeNoValue

View file

@ -30,6 +30,7 @@ final class PPPReview: MWMTableViewCell {
ratingSummaryView.textFont = UIFont.bold12()
addReviewButton.isHidden = true
pricingLabel.isHidden = true
reviewsLabel.isHidden = false;
ratingSummaryView.value = rating.value
ratingSummaryView.type = rating.type
if rating.type == .noValue {
@ -43,7 +44,7 @@ final class PPPReview: MWMTableViewCell {
ratingSummaryView.noValueImage = #imageLiteral(resourceName: "ic_12px_radio_on")
ratingSummaryView.noValueColor = UIColor.linkBlue()
reviewsLabel.text = L("placepage_reviewed")
pricingLabel.isHidden = false
pricingLabel.isHidden = false;
priceSetter(pricingLabel)
}
} else {