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
accounts
importExport
sidebarFeedManagement
timeline
articles
appearance
@ -101,6 +100,7 @@ struct SettingsView: View {
.foregroundColor(.primary)
}
}
Toggle("Confirm When Deleting", isOn: $settings.sidebarConfirmDelete)
})
.alert(isPresented: $feedsSettingsModel.showError) {
Alert(
@ -138,17 +138,14 @@ struct SettingsView: View {
Text(viewModel.accounts[i].nameForDisplay)
}
})
})
}
.listStyle(InsetGroupedListStyle())
.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 {
Section(header: Text("Timeline"), content: {