Enable credentials button for newer sync services

This commit is contained in:
Maurice Parker 2020-10-29 14:53:52 -05:00
parent 515dd5f63f
commit 1a4ab96038
2 changed files with 19 additions and 1 deletions

View File

@ -21,7 +21,6 @@ class ReaderAPIAccountViewController: UITableViewController {
@IBOutlet weak var showHideButton: UIButton! @IBOutlet weak var showHideButton: UIButton!
@IBOutlet weak var actionButton: UIButton! @IBOutlet weak var actionButton: UIButton!
weak var account: Account? weak var account: Account?
var accountType: AccountType? var accountType: AccountType?
weak var delegate: AddAccountDismissDelegate? weak var delegate: AddAccountDismissDelegate?

View File

@ -58,6 +58,25 @@ class AccountInspectorViewController: UITableViewController {
addViewController.account = account addViewController.account = account
navController.modalPresentationStyle = .currentContext navController.modalPresentationStyle = .currentContext
present(navController, animated: true) 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: default:
break break
} }