File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
WooCommerce/Classes/ViewRelated/Dashboard/Settings/Settings Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -297,6 +297,17 @@ private extension SettingsViewController {
297297 show ( viewController, sender: self )
298298 }
299299
300+ func installJetpackWasPressed( ) {
301+ guard let siteURL = ServiceLocator . stores. sessionManager. defaultSite? . url else {
302+ return
303+ }
304+ let installJetpackController = JetpackInstallHostingController ( siteURL: siteURL)
305+ installJetpackController. setDismissAction { [ weak self] in
306+ self ? . dismiss ( animated: true , completion: nil )
307+ }
308+ present ( installJetpackController, animated: true , completion: nil )
309+ }
310+
300311 func privacyWasPressed( ) {
301312 ServiceLocator . analytics. track ( . settingsPrivacySettingsTapped)
302313 guard let viewController = UIStoryboard . dashboard. instantiateViewController ( ofClass: PrivacySettingsViewController . self) else {
@@ -441,6 +452,8 @@ extension SettingsViewController: UITableViewDelegate {
441452 supportWasPressed ( )
442453 case . inPersonPayments:
443454 inPersonPaymentsWasPressed ( )
455+ case . installJetpack:
456+ installJetpackWasPressed ( )
444457 case . privacy:
445458 privacyWasPressed ( )
446459 case . betaFeatures:
You can’t perform that action at this time.
0 commit comments