[iOS] open hotel reviews, more info, etc. in booking app (if installed)

This commit is contained in:
Aleksey Belouosv 2018-10-04 15:28:34 +03:00 committed by Daria Volvenkova
parent 347daf60ea
commit 5223b6de2d

View file

@ -407,7 +407,7 @@ map<MetainfoRows, Class> const kMetaInfoCells = {
case ButtonsRows::AddPlace: [delegate addPlace]; break;
case ButtonsRows::EditPlace: [delegate editPlace]; break;
case ButtonsRows::AddBusiness: [delegate addBusiness]; break;
case ButtonsRows::HotelDescription: [delegate book:YES]; break;
case ButtonsRows::HotelDescription: [delegate book:NO]; break;
case ButtonsRows::Other: NSAssert(false, @"Incorrect row");
}
}];
@ -492,7 +492,7 @@ map<MetainfoRows, Class> const kMetaInfoCells = {
[c configWithTitle:L(@"reviews_on_bookingcom")
action:^{
[delegate showAllReviews];
[delegate book:NO];
}
isInsetButton:NO];
return c;
@ -519,7 +519,7 @@ map<MetainfoRows, Class> const kMetaInfoCells = {
[tableView dequeueReusableCellWithCellClass:cls indexPath:indexPath]);
[c configWithTitle:L(@"more_on_bookingcom")
action:^{
[delegate book:YES];
[delegate book:NO];
;
}
isInsetButton:NO];