mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 00:01:00 +00:00
Remove items from secondary navigation when browsing
This commit is contained in:
parent
b0132640ab
commit
15cc811102
1 changed files with 28 additions and 26 deletions
|
@ -29,6 +29,7 @@ struct SecondaryNavigationView: View {
|
|||
Label("secondary-navigation.accounts", systemImage: "rectangle.stack.person.crop")
|
||||
}
|
||||
}
|
||||
if viewModel.identityContext.identity.authenticated && !viewModel.identityContext.identity.pending {
|
||||
Section {
|
||||
NavigationLink(destination: ListsView(viewModel: .init(identityContext: viewModel.identityContext))
|
||||
.environmentObject(rootViewModel)) {
|
||||
|
@ -62,6 +63,7 @@ struct SecondaryNavigationView: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Section {
|
||||
NavigationLink(
|
||||
destination: PreferencesView(viewModel: .init(identityContext: viewModel.identityContext))
|
||||
|
|
Loading…
Reference in a new issue