Skip to content

Commit

Permalink
feat: remember last feed tab in home
Browse files Browse the repository at this point in the history
  • Loading branch information
netchampfaris committed Jan 8, 2025
1 parent 0a205ed commit 9840725
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/pages/Discussions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ import { computed, ref } from 'vue'
import { Breadcrumbs, Select, TabButtons, usePageMeta } from 'frappe-ui'
import DiscussionList from '@/components/DiscussionList.vue'
import LastPostReminder from '@/components/LastPostReminder.vue'
import { useLocalStorage } from '@vueuse/core'
const feedType = ref('following')
const feedType = useLocalStorage<'following' | 'participating' | 'recent'>(
'homeFeedType',
'following',
)
const orderBy = ref('last_post_at desc')
const filters = computed(() => {
Expand Down

0 comments on commit 9840725

Please sign in to comment.