Skip to content

Commit

Permalink
Open PeopleViewController from Subscribers list card
Browse files Browse the repository at this point in the history
  • Loading branch information
staskus committed Apr 24, 2024
1 parent 7f469ac commit 48489b5
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,14 @@ final class StatsSubscribersViewController: SiteStatsBaseTableViewController {

extension StatsSubscribersViewController: SiteStatsPeriodDelegate {
func viewMoreSelectedForStatSection(_ statSection: StatSection) {
// TODO
DDLogInfo("\(statSection) selected")
switch statSection {
case .subscribersList:
guard let blog = RootViewCoordinator.sharedPresenter.mySitesCoordinator.currentBlog,
let peopleViewController = PeopleViewController.controllerWithBlog(blog, selectedFilter: .followers) else { return }
navigationController?.pushViewController(peopleViewController, animated: true)
default:
// TODO
DDLogInfo("\(statSection) selected")
}
}
}

0 comments on commit 48489b5

Please sign in to comment.