Remove items from secondary navigation when browsing
This commit is contained in:
parent
b0132640ab
commit
15cc811102
|
@ -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 New Issue