From 0e9f69c1783240ce9c361734a2dd0894d52d15f4 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Thu, 12 Nov 2020 11:12:58 +0100 Subject: [PATCH] beginning to implement categories --- src/components/Main.vue | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/src/components/Main.vue b/src/components/Main.vue index d9c82e4..242cce0 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -207,6 +207,33 @@ export default { vm.pageLoading = true } + if (vm.$route.name === 'CATEGORIES') { + vm.tableData = [ + { + name: 'Countries', + type: 'folder', + path: '#/categories/countries', + }, + { + name: 'States', + type: 'folder', + path: '#/categories/states', + }, + { + name: 'Languages', + type: 'folder', + path: '#/categories/languages', + }, + { + name: 'Tags', + type: 'folder', + path: '#/categories/tags', + }, + ] + vm.pageLoading = false + return true + } + // Skip loading more stations on certain sites if (vm.offset > 0 && (vm.$route.name === 'FAVORITES' @@ -214,8 +241,6 @@ export default { return true } - console.log(vm.$route.name) - if (menuState === 'TOP') { sortBy = 'clickcount' } else if (menuState === 'NEW') {