mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Update CollectionListView based on account type (#222)
This commit is contained in:
parent
5e86073499
commit
b2f8049632
@ -10,7 +10,10 @@ struct CollectionListView: View {
|
||||
List(selection: $selectedCollection) {
|
||||
if model.account.isLoggedIn {
|
||||
NavigationLink("All Posts", destination: PostListView(selectedCollection: nil, showAllPosts: true))
|
||||
NavigationLink("Drafts", destination: PostListView(selectedCollection: nil, showAllPosts: false))
|
||||
NavigationLink(
|
||||
model.account.server == "https://write.as" ? "Anonymous" : "Drafts",
|
||||
destination: PostListView(selectedCollection: nil, showAllPosts: false)
|
||||
)
|
||||
Section(header: Text("Your Blogs")) {
|
||||
ForEach(collections, id: \.self) { collection in
|
||||
NavigationLink(destination: PostListView(selectedCollection: collection, showAllPosts: false),
|
||||
|
Loading…
Reference in New Issue
Block a user