diff --git a/iphone/Maps/Bookmarks/Categories/Category settings/CategorySettings.storyboard b/iphone/Maps/Bookmarks/Categories/Category settings/CategorySettings.storyboard index ca48817890..00d8c99b1d 100644 --- a/iphone/Maps/Bookmarks/Categories/Category settings/CategorySettings.storyboard +++ b/iphone/Maps/Bookmarks/Categories/Category settings/CategorySettings.storyboard @@ -137,16 +137,18 @@ - + - + + + + + + @@ -174,6 +184,7 @@ + diff --git a/iphone/Maps/Bookmarks/Categories/Category settings/CategorySettingsViewController.swift b/iphone/Maps/Bookmarks/Categories/Category settings/CategorySettingsViewController.swift index 0ad4dd59c0..c63f96fda1 100644 --- a/iphone/Maps/Bookmarks/Categories/Category settings/CategorySettingsViewController.swift +++ b/iphone/Maps/Bookmarks/Categories/Category settings/CategorySettingsViewController.swift @@ -24,6 +24,7 @@ class CategorySettingsViewController: MWMTableViewController { @IBOutlet private weak var descriptionTextView: UITextView! @IBOutlet private weak var descriptionCell: UITableViewCell! @IBOutlet private weak var saveButton: UIBarButtonItem! + @IBOutlet private weak var deleteListButton: UIButton! override func viewDidLoad() { super.viewDidLoad() @@ -32,6 +33,7 @@ class CategorySettingsViewController: MWMTableViewController { assert(categoryId != MWMFrameworkHelper.invalidCategoryId(), "must provide category info") + deleteListButton.isEnabled = (manager.groupsIdList().count > 1) nameTextField.text = manager.getCategoryName(categoryId) descriptionTextView.text = manager.getCategoryDescription(categoryId) configureAccessStatus()