forked from organicmaps/organicmaps
[iOS] add error when user tries to pushlish list with less then 3 elements
This commit is contained in:
parent
aee95072e1
commit
0d752a9ea9
1 changed files with 6 additions and 1 deletions
|
@ -183,7 +183,12 @@ final class BookmarksSharingViewController: MWMTableViewController {
|
|||
self.dismiss(animated: true)
|
||||
self.performAfterValidation(anchor: self.uploadAndPublishCell) { [weak self] in
|
||||
if let self = self {
|
||||
self.showEditName()
|
||||
if (self.category.trackCount + self.category.bookmarksCount > 2) {
|
||||
self.showEditName()
|
||||
} else {
|
||||
MWMAlertViewController.activeAlert().presentInfoAlert(L("error_public_not_enough_title"),
|
||||
text: L("error_public_not_enough_subtitle"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue