File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
WooCommerce/Classes/Authentication/Navigation Exceptions Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ final class WrongAccountErrorViewModel: ULAccountMismatchViewModel {
132132 if isSelfHostedSite {
133133 return showSiteCredentialLoginAndJetpackConnection ( from: viewController)
134134 }
135- return // TODO: show alert
135+ return presentConnectToWPComSiteAlert ( from : viewController )
136136 }
137137
138138 showJetpackConnectionWebView ( url: url, from: viewController)
@@ -232,6 +232,13 @@ private extension WrongAccountErrorViewModel {
232232 }
233233 }
234234
235+ func presentConnectToWPComSiteAlert( from viewController: UIViewController ) {
236+ let fancyAlert = FancyAlertViewController . makeConnectAccountToWPComSiteAlert ( )
237+ fancyAlert. modalPresentationStyle = . custom
238+ fancyAlert. transitioningDelegate = AppDelegate . shared. tabBarController
239+ viewController. present ( fancyAlert, animated: true )
240+ }
241+
235242 /// Presents a web view pointing to the Jetpack connection URL.
236243 ///
237244 func showJetpackConnectionWebView( url: URL , from viewController: UIViewController ) {
You can’t perform that action at this time.
0 commit comments