Move available providers to Core
This commit is contained in:
parent
b45479a733
commit
60b60646d4
|
@ -183,16 +183,7 @@ class OrganizerViewController: UITableViewController, TableModelHost {
|
|||
}
|
||||
|
||||
private func addNewProvider() {
|
||||
var names = Set(InfrastructureFactory.shared.allNames)
|
||||
var createdNames: [Infrastructure.Name] = []
|
||||
providers.forEach {
|
||||
guard let name = Infrastructure.Name(rawValue: $0) else {
|
||||
return
|
||||
}
|
||||
createdNames.append(name)
|
||||
}
|
||||
names.formSymmetricDifference(createdNames)
|
||||
|
||||
let names = service.availableProviderNames()
|
||||
guard !names.isEmpty else {
|
||||
let alert = Macros.alert(
|
||||
L10n.Core.Organizer.Sections.Providers.header,
|
||||
|
@ -202,8 +193,7 @@ class OrganizerViewController: UITableViewController, TableModelHost {
|
|||
present(alert, animated: true, completion: nil)
|
||||
return
|
||||
}
|
||||
|
||||
availableProviderNames = names.sorted()
|
||||
availableProviderNames = names
|
||||
perform(segue: StoryboardSegue.Organizer.addProviderSegueIdentifier)
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 2b5b2e547384886d3fb04ada7e926c618c443629
|
||||
Subproject commit a651c693a66ca0ca3c6bb796a023ebd390d5cb3a
|
Loading…
Reference in New Issue