Skip to content

Commit 7352367

Browse files
Add: overlay triggers for stats, reader and notifs
1 parent 06ccd12 commit 7352367

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationsViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ class NotificationsViewController: UIViewController, UIViewControllerRestoration
180180
override func viewWillAppear(_ animated: Bool) {
181181
super.viewWillAppear(animated)
182182

183+
JetpackFeaturesRemovalCoordinator.presentOverlay(from: .notifications, in: self)
184+
183185
syncNotificationsWithModeratedComments()
184186
setupInlinePrompt()
185187

WordPress/Classes/ViewRelated/Reader/ReaderStreamViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ import Combine
352352
override func viewWillAppear(_ animated: Bool) {
353353
super.viewWillAppear(animated)
354354

355+
JetpackFeaturesRemovalCoordinator.presentOverlay(from: .reader, in: self)
356+
355357
syncIfAppropriate()
356358
}
357359

WordPress/Classes/ViewRelated/Stats/SiteStatsDashboardViewController.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ class SiteStatsDashboardViewController: UIViewController {
9494
view.accessibilityIdentifier = "stats-dashboard"
9595
}
9696

97+
override func viewWillAppear(_ animated: Bool) {
98+
super.viewWillAppear(animated)
99+
JetpackFeaturesRemovalCoordinator.presentOverlay(from: .stats, in: self)
100+
}
101+
97102
func configureInsightsTableView() {
98103
insightsTableViewController.tableStyle = FeatureFlag.statsNewAppearance.enabled ? .insetGrouped : .grouped
99104
insightsTableViewController.bannerView = jetpackBannerView

0 commit comments

Comments
 (0)