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') {