Moves feed deletion to Feeds section

This commit is contained in:
Stuart Breckenridge 2020-08-15 14:31:56 +08:00
parent 06826a23bb
commit e3a221befd
No known key found for this signature in database
GPG Key ID: 79BD673276AE83CE
1 changed files with 3 additions and 6 deletions

View File

@ -26,7 +26,6 @@ struct SettingsView: View {
systemSettings systemSettings
accounts accounts
importExport importExport
sidebarFeedManagement
timeline timeline
articles articles
appearance appearance
@ -101,6 +100,7 @@ struct SettingsView: View {
.foregroundColor(.primary) .foregroundColor(.primary)
} }
} }
Toggle("Confirm When Deleting", isOn: $settings.sidebarConfirmDelete)
}) })
.alert(isPresented: $feedsSettingsModel.showError) { .alert(isPresented: $feedsSettingsModel.showError) {
Alert( Alert(
@ -138,17 +138,14 @@ struct SettingsView: View {
Text(viewModel.accounts[i].nameForDisplay) Text(viewModel.accounts[i].nameForDisplay)
} }
}) })
}) })
} }
.listStyle(InsetGroupedListStyle()) .listStyle(InsetGroupedListStyle())
.navigationBarTitle("Export Subscriptions", displayMode: .inline) .navigationBarTitle("Export Subscriptions", displayMode: .inline)
} }
var sidebarFeedManagement: some View {
Section(header: Text("Feed Management")) {
Toggle("Confirm When Deleting Feeds and Folders", isOn: $settings.sidebarConfirmDelete)
}.toggleStyle(SwitchToggleStyle(tint: .accentColor))
}
var timeline: some View { var timeline: some View {
Section(header: Text("Timeline"), content: { Section(header: Text("Timeline"), content: {