From b2f8049632eff510784dba98eb477e77ac4049c5 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Wed, 7 Sep 2022 08:28:53 -0400 Subject: [PATCH] Update CollectionListView based on account type (#222) --- Shared/PostCollection/CollectionListView.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Shared/PostCollection/CollectionListView.swift b/Shared/PostCollection/CollectionListView.swift index 589903b..91c4c3d 100644 --- a/Shared/PostCollection/CollectionListView.swift +++ b/Shared/PostCollection/CollectionListView.swift @@ -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),