From 6853e83a7f9b0b25e175e448df14ebe0b0297c5f Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Thu, 12 Nov 2020 11:00:21 +0100 Subject: [PATCH] show empty pages --- src/components/Main.vue | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/src/components/Main.vue b/src/components/Main.vue index 3521e17..d9c82e4 100644 --- a/src/components/Main.vue +++ b/src/components/Main.vue @@ -3,14 +3,16 @@ - + + + No favorites yet + + + + No search results + + @@ -182,10 +202,20 @@ export default { let queryURI = queryBase let sortBy = 'clickcount' + // Inital page loading if (vm.offset === 0) { vm.pageLoading = true } + // Skip loading more stations on certain sites + if (vm.offset > 0 + && (vm.$route.name === 'FAVORITES' + || vm.$route.name === 'RECENT')) { + return true + } + + console.log(vm.$route.name) + if (menuState === 'TOP') { sortBy = 'clickcount' } else if (menuState === 'NEW') {