mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +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 {
|
- (instancetype)initWithRawData:(place_page::Info const &)rawData {
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self) {
|
if (self) {
|
||||||
_showAddPlace = rawData.ShouldShowAddPlace();
|
_showAddPlace = rawData.ShouldShowAddPlace() || rawData.ShouldShowAddBusiness();
|
||||||
_showEditPlace = rawData.ShouldShowEditPlace();
|
_showEditPlace = rawData.ShouldShowEditPlace();
|
||||||
_enableAddPlace = rawData.ShouldEnableAddPlace();
|
_enableAddPlace = rawData.ShouldEnableAddPlace();
|
||||||
_enableEditPlace = rawData.ShouldEnableEditPlace();
|
_enableEditPlace = rawData.ShouldEnableEditPlace();
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ public:
|
|||||||
|
|
||||||
/// Edit and add
|
/// Edit and add
|
||||||
bool ShouldShowAddPlace() const;
|
bool ShouldShowAddPlace() const;
|
||||||
bool ShouldShowAddBusiness() const { return m_canEditOrAdd && IsBuilding(); }
|
bool ShouldShowAddBusiness() const { return IsBuilding(); }
|
||||||
bool ShouldShowEditPlace() const;
|
bool ShouldShowEditPlace() const;
|
||||||
|
|
||||||
bool ShouldEnableAddPlace() const { return m_canEditOrAdd; };
|
bool ShouldEnableAddPlace() const { return m_canEditOrAdd; };
|
||||||
|
|||||||
Reference in New Issue
Block a user