Merge branch 'navigation-update' into shigusegubu-vue3

* navigation-update:
  fix prod build again + fetch lists (and follow request) on login, stop fetching on logout, don't start fetching in components
This commit is contained in:
Henry Jameson 2022-08-15 20:44:34 +03:00
commit 55241e0ee3
4 changed files with 8 additions and 16 deletions

View file

@ -11,9 +11,6 @@ const Lists = {
ListsCard,
ListsNew
},
created () {
this.$store.dispatch('startFetchingLists')
},
computed: {
lists () {
return this.$store.state.lists.allLists

View file

@ -1,20 +1,11 @@
import { mapState } from 'vuex'
import NavigationEntry from 'src/components/navigation/navigation_entry.vue'
export const getListEntries = state => state.lists.allLists.map(list => ({
name: 'list-' + list.id,
routeObject: { name: 'lists-timeline', params: { id: list.id } },
labelRaw: list.title,
iconLetter: list.title[0]
}))
import { getListEntries } from 'src/components/navigation/filter.js'
export const ListsMenuContent = {
props: [
'showPin'
],
created () {
this.$store.dispatch('startFetchingLists')
},
components: {
NavigationEntry
},

View file

@ -36,9 +36,6 @@ library.add(
const NavPanel = {
props: ['forceExpand'],
created () {
if (this.currentUser && this.currentUser.locked) {
this.$store.dispatch('startFetchingFollowRequests')
}
},
components: {
ListsMenuContent,