hide `Most Popular` if invidious is disabled (#2772)

This commit is contained in:
ChunkyProgrammer 2022-10-27 05:34:51 -04:00 committed by GitHub
parent 8f55a648b1
commit f46132ce25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View File

@ -8,6 +8,12 @@ export default Vue.extend({
} }
}, },
computed: { computed: {
backendFallback: function () {
return this.$store.getters.getBackendFallback
},
backendPreference: function () {
return this.$store.getters.getBackendPreference
},
hidePopularVideos: function () { hidePopularVideos: function () {
return this.$store.getters.getHidePopularVideos return this.$store.getters.getHidePopularVideos
}, },

View File

@ -64,7 +64,7 @@
</p> </p>
</div> </div>
<div <div
v-if="!hidePopularVideos" v-if="!hidePopularVideos && (backendFallback || backendPreference === 'invidious')"
class="navOption" class="navOption"
:title="$t('Most Popular')" :title="$t('Most Popular')"
@click="navigate('popular')" @click="navigate('popular')"

View File

@ -12,6 +12,9 @@ export default Vue.extend({
isOpen: function () { isOpen: function () {
return this.$store.getters.getIsSideNavOpen return this.$store.getters.getIsSideNavOpen
}, },
backendFallback: function () {
return this.$store.getters.getBackendFallback
},
backendPreference: function () { backendPreference: function () {
return this.$store.getters.getBackendPreference return this.$store.getters.getBackendPreference
}, },

View File

@ -84,7 +84,7 @@
</p> </p>
</div> </div>
<div <div
v-if="!hidePopularVideos" v-if="!hidePopularVideos && (backendFallback || backendPreference === 'invidious')"
class="navOption mobileHidden" class="navOption mobileHidden"
role="button" role="button"
tabindex="0" tabindex="0"