diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/lists/lists.js | 3 | ||||
| -rw-r--r-- | src/components/lists_menu/lists_menu_content.js | 11 | ||||
| -rw-r--r-- | src/components/nav_panel/nav_panel.js | 3 |
3 files changed, 1 insertions, 16 deletions
diff --git a/src/components/lists/lists.js b/src/components/lists/lists.js index 791b99b2..9aed37f7 100644 --- a/src/components/lists/lists.js +++ b/src/components/lists/lists.js @@ -11,9 +11,6 @@ const Lists = { ListsCard, ListsNew }, - created () { - this.$store.dispatch('startFetchingLists') - }, computed: { lists () { return this.$store.state.lists.allLists 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 }, diff --git a/src/components/nav_panel/nav_panel.js b/src/components/nav_panel/nav_panel.js index aeccd8a7..b11a258b 100644 --- a/src/components/nav_panel/nav_panel.js +++ b/src/components/nav_panel/nav_panel.js @@ -36,9 +36,6 @@ library.add( const NavPanel = { props: ['forceExpand'], created () { - if (this.currentUser && this.currentUser.locked) { - this.$store.dispatch('startFetchingFollowRequests') - } }, components: { ListsMenuContent, |
