[iOS] Disable sharing on empty bookmark group

https://jira.mail.ru/browse/MAPSME-15124
This commit is contained in:
Alexander Boriskov 2020-11-18 11:25:07 +03:00 committed by Alexander Boriskov
parent cd7934d918
commit 995d0fa217

View file

@ -114,7 +114,9 @@ final class BookmarksListPresenter {
private func showMoreMenu() {
var moreItems: [BookmarksListMenuItem] = []
moreItems.append(BookmarksListMenuItem(title: L("sharing_options"), action: { [weak self] in
moreItems.append(BookmarksListMenuItem(title: L("sharing_options"),
enabled: !bookmarkGroup.isEmpty,
action: { [weak self] in
guard let self = self else { return }
self.router.sharingOptions(self.bookmarkGroup)
Statistics.logEvent(kStatBookmarksListItemSettings, withParameters: [kStatOption : kStatSharingOptions])