about summary refs log tree commit diff
path: root/src/state/models/profile-ui.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-22 12:26:53 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-22 12:26:53 -0600
commiteaa2105570126fd930985a209808c6aa82806db9 (patch)
tree57b6c71ae69975c6b03184c6281bc2d4354b3d34 /src/state/models/profile-ui.ts
parentd608d67bfee9e5f31a85e8d2add52d6ffa6e5309 (diff)
downloadvoidsky-eaa2105570126fd930985a209808c6aa82806db9.tar.zst
Add 'posts & replies' view to profiles
Diffstat (limited to 'src/state/models/profile-ui.ts')
-rw-r--r--src/state/models/profile-ui.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/state/models/profile-ui.ts b/src/state/models/profile-ui.ts
index 0a70525fa..d0eb1f858 100644
--- a/src/state/models/profile-ui.ts
+++ b/src/state/models/profile-ui.ts
@@ -7,12 +7,17 @@ import {FeedModel} from './feed-view'
 
 export enum Sections {
   Posts = 'Posts',
+  PostsWithReplies = 'Posts & replies',
   Scenes = 'Scenes',
   Trending = 'Trending',
   Members = 'Members',
 }
 
-const USER_SELECTOR_ITEMS = [Sections.Posts, Sections.Scenes]
+const USER_SELECTOR_ITEMS = [
+  Sections.Posts,
+  Sections.PostsWithReplies,
+  Sections.Scenes,
+]
 const SCENE_SELECTOR_ITEMS = [Sections.Trending, Sections.Members]
 
 export interface ProfileUiParams {
@@ -53,6 +58,7 @@ export class ProfileUiModel {
   get currentView(): FeedModel | MembershipsViewModel | MembersViewModel {
     if (
       this.selectedView === Sections.Posts ||
+      this.selectedView === Sections.PostsWithReplies ||
       this.selectedView === Sections.Trending
     ) {
       return this.feed