From 1a4ab96038455f5fd588c8bf7e6f080249653960 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 29 Oct 2020 14:53:52 -0500 Subject: [PATCH] Enable credentials button for newer sync services --- .../ReaderAPIAccountViewController.swift | 1 - .../AccountInspectorViewController.swift | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/iOS/Account/ReaderAPIAccountViewController.swift b/iOS/Account/ReaderAPIAccountViewController.swift index 3eca028cd..5c99618d6 100644 --- a/iOS/Account/ReaderAPIAccountViewController.swift +++ b/iOS/Account/ReaderAPIAccountViewController.swift @@ -21,7 +21,6 @@ class ReaderAPIAccountViewController: UITableViewController { @IBOutlet weak var showHideButton: UIButton! @IBOutlet weak var actionButton: UIButton! - weak var account: Account? var accountType: AccountType? weak var delegate: AddAccountDismissDelegate? diff --git a/iOS/Inspector/AccountInspectorViewController.swift b/iOS/Inspector/AccountInspectorViewController.swift index cc7c5be5b..638383f62 100644 --- a/iOS/Inspector/AccountInspectorViewController.swift +++ b/iOS/Inspector/AccountInspectorViewController.swift @@ -58,6 +58,25 @@ class AccountInspectorViewController: UITableViewController { addViewController.account = account navController.modalPresentationStyle = .currentContext present(navController, animated: true) + case .feedWrangler: + let navController = UIStoryboard.account.instantiateViewController(withIdentifier: "FeedWranglerAccountNavigationViewController") as! UINavigationController + let addViewController = navController.topViewController as! FeedWranglerAccountViewController + addViewController.account = account + navController.modalPresentationStyle = .currentContext + present(navController, animated: true) + case .newsBlur: + let navController = UIStoryboard.account.instantiateViewController(withIdentifier: "NewsBlurAccountNavigationViewController") as! UINavigationController + let addViewController = navController.topViewController as! NewsBlurAccountViewController + addViewController.account = account + navController.modalPresentationStyle = .currentContext + present(navController, animated: true) + case .inoreader, .bazQux, .theOldReader, .freshRSS: + let navController = UIStoryboard.account.instantiateViewController(withIdentifier: "ReaderAPIAccountNavigationViewController") as! UINavigationController + let addViewController = navController.topViewController as! ReaderAPIAccountViewController + addViewController.accountType = account.type + addViewController.account = account + navController.modalPresentationStyle = .currentContext + present(navController, animated: true) default: break }