mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 08:10:59 +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")
|
Label("secondary-navigation.accounts", systemImage: "rectangle.stack.person.crop")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if viewModel.identityContext.identity.authenticated && !viewModel.identityContext.identity.pending {
|
||||||
Section {
|
Section {
|
||||||
NavigationLink(destination: ListsView(viewModel: .init(identityContext: viewModel.identityContext))
|
NavigationLink(destination: ListsView(viewModel: .init(identityContext: viewModel.identityContext))
|
||||||
.environmentObject(rootViewModel)) {
|
.environmentObject(rootViewModel)) {
|
||||||
|
@ -62,6 +63,7 @@ struct SecondaryNavigationView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Section {
|
Section {
|
||||||
NavigationLink(
|
NavigationLink(
|
||||||
destination: PreferencesView(viewModel: .init(identityContext: viewModel.identityContext))
|
destination: PreferencesView(viewModel: .init(identityContext: viewModel.identityContext))
|
||||||
|
|
Loading…
Reference in a new issue