mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
[ios] [map] Show Add Place for business
Closes https://github.com/organicmaps/organicmaps/issues/10849 Related PRs: https://github.com/organicmaps/organicmaps/pull/9002 and https://github.com/organicmaps/organicmaps/pull/8158 Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
e780ef685d
commit
a19cbbbbf7
@@ -9,7 +9,7 @@
|
||||
- (instancetype)initWithRawData:(place_page::Info const &)rawData {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
_showAddPlace = rawData.ShouldShowAddPlace();
|
||||
_showAddPlace = rawData.ShouldShowAddPlace() || rawData.ShouldShowAddBusiness();
|
||||
_showEditPlace = rawData.ShouldShowEditPlace();
|
||||
_enableAddPlace = rawData.ShouldEnableAddPlace();
|
||||
_enableEditPlace = rawData.ShouldEnableEditPlace();
|
||||
|
||||
@@ -115,7 +115,7 @@ public:
|
||||
|
||||
/// Edit and add
|
||||
bool ShouldShowAddPlace() const;
|
||||
bool ShouldShowAddBusiness() const { return m_canEditOrAdd && IsBuilding(); }
|
||||
bool ShouldShowAddBusiness() const { return IsBuilding(); }
|
||||
bool ShouldShowEditPlace() const;
|
||||
|
||||
bool ShouldEnableAddPlace() const { return m_canEditOrAdd; };
|
||||
|
||||
Reference in New Issue
Block a user