mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Adds local add account view
Renames AddAccount view for clarity
This commit is contained in:
@@ -87,11 +87,11 @@ struct AddAccountListView: View {
|
||||
.sheet(isPresented: $viewModel.showAddAccountSheet.0) {
|
||||
switch viewModel.showAddAccountSheet.accountType {
|
||||
case .onMyMac:
|
||||
Text("ON MY MAC")
|
||||
LocalAddAccountView()
|
||||
case .cloudKit:
|
||||
iCloudAccountView()
|
||||
CloudKitAddAccountView()
|
||||
case .freshRSS, .inoreader, .bazQux, .theOldReader:
|
||||
ReaderAPIAccountView(accountType: viewModel.showAddAccountSheet.accountType, account: nil)
|
||||
ReaderAPIAddAccountView(accountType: viewModel.showAddAccountSheet.accountType, account: nil)
|
||||
default:
|
||||
Text(viewModel.showAddAccountSheet.accountType.localizedAccountName())
|
||||
}
|
||||
@@ -200,7 +200,6 @@ struct AddAccountListView: View {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private func interactionDisabled(for accountType: AccountType) -> Bool {
|
||||
if accountType == .cloudKit {
|
||||
if AccountManager.shared.accounts.contains(where: { $0.type == .cloudKit }) {
|
||||
|
||||
Reference in New Issue
Block a user