Only display active accounts for OPML import on iOS
This commit is contained in:
parent
e5f06a4217
commit
35866d558d
|
@ -217,13 +217,11 @@
|
||||||
TargetAttributes = {
|
TargetAttributes = {
|
||||||
844BEE5A1F0AB3C8004AB7CD = {
|
844BEE5A1F0AB3C8004AB7CD = {
|
||||||
CreatedOnToolsVersion = 8.3.2;
|
CreatedOnToolsVersion = 8.3.2;
|
||||||
DevelopmentTeam = M8L2WTLA8W;
|
|
||||||
LastSwiftMigration = 0830;
|
LastSwiftMigration = 0830;
|
||||||
ProvisioningStyle = Automatic;
|
ProvisioningStyle = Automatic;
|
||||||
};
|
};
|
||||||
844BEE631F0AB3C9004AB7CD = {
|
844BEE631F0AB3C9004AB7CD = {
|
||||||
CreatedOnToolsVersion = 8.3.2;
|
CreatedOnToolsVersion = 8.3.2;
|
||||||
DevelopmentTeam = M8L2WTLA8W;
|
|
||||||
ProvisioningStyle = Automatic;
|
ProvisioningStyle = Automatic;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -84,7 +84,7 @@ struct SettingsView : View {
|
||||||
|
|
||||||
var createSubscriptionsImportAccounts: ActionSheet {
|
var createSubscriptionsImportAccounts: ActionSheet {
|
||||||
var buttons = [ActionSheet.Button]()
|
var buttons = [ActionSheet.Button]()
|
||||||
for account in viewModel.accounts {
|
for account in viewModel.activeAccounts {
|
||||||
let button = ActionSheet.Button.default(Text(verbatim: account.nameForDisplay)) {
|
let button = ActionSheet.Button.default(Text(verbatim: account.nameForDisplay)) {
|
||||||
self.subscriptionsImportAccounts = nil
|
self.subscriptionsImportAccounts = nil
|
||||||
self.subscriptionsImportDocumentPicker = Modal(SettingsSubscriptionsImportDocumentPickerView(account: account))
|
self.subscriptionsImportDocumentPicker = Modal(SettingsSubscriptionsImportDocumentPickerView(account: account))
|
||||||
|
@ -127,6 +127,14 @@ struct SettingsView : View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var activeAccounts: [Account] {
|
||||||
|
get {
|
||||||
|
return AccountManager.shared.sortedActiveAccounts
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var sortOldestToNewest: Bool {
|
var sortOldestToNewest: Bool {
|
||||||
get {
|
get {
|
||||||
return AppDefaults.timelineSortDirection == .orderedDescending
|
return AppDefaults.timelineSortDirection == .orderedDescending
|
||||||
|
|
Loading…
Reference in New Issue