Skip to content

Commit 0ecee98

Browse files
authored
Reader: Reuse the edit button action for the add tag logic in the filter sheet (#22552)
2 parents 3e8a58c + 1323219 commit 0ecee98

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

WordPress/Classes/ViewRelated/Reader/Filter/FilterProvider.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ extension FilterProvider: Equatable {
100100

101101
extension FilterProvider {
102102

103-
func showAdd(on presenterViewController: UIViewController, sceneDelegate: ScenePresenterDelegate?) {
104-
let presenter = ReaderManageScenePresenter(selected: section, sceneDelegate: sceneDelegate)
105-
presenter.present(on: presenterViewController, animated: true, completion: nil)
106-
}
107-
108103
static func filterItems(_ items: [TableDataItem], siteType: SiteOrganizationType?) -> [TableDataItem] {
109104
// If a site type is specified, filter items by it.
110105
// Otherwise, just return all items.

WordPress/Classes/ViewRelated/Reader/Filter/FilterSheetViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ private extension FilterSheetViewController {
249249
present(navController, animated: true)
250250
break
251251
case .tag:
252-
filterProvider.showAdd(on: self, sceneDelegate: self)
252+
// Go to the Filter management view
253+
didTapEditButton()
253254
}
254255
}
255256

0 commit comments

Comments
 (0)