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: {
backendFallback: function () {
return this.$store.getters.getBackendFallback
},
backendPreference: function () {
return this.$store.getters.getBackendPreference
},
hidePopularVideos: function () {
return this.$store.getters.getHidePopularVideos
},

View File

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

View File

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

View File

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