aboutsummaryrefslogtreecommitdiff
path: root/src/components/lists_menu
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-08-15 20:43:38 +0300
committerHenry Jameson <me@hjkos.com>2022-08-15 20:44:21 +0300
commitebe095bd769481cc114009e8193494d482f9ff4d (patch)
treecd4347d676588816ad15b7a44d2a0c3df69ca729 /src/components/lists_menu
parent50924aab5c4a5fccde3bcf653f4d9192385e9fc9 (diff)
fix prod build again + fetch lists (and follow request) on login,
stop fetching on logout, don't start fetching in components
Diffstat (limited to 'src/components/lists_menu')
-rw-r--r--src/components/lists_menu/lists_menu_content.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/components/lists_menu/lists_menu_content.js b/src/components/lists_menu/lists_menu_content.js
index 99fea0f0..97b32210 100644
--- a/src/components/lists_menu/lists_menu_content.js
+++ b/src/components/lists_menu/lists_menu_content.js
@@ -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
},