mirror of https://github.com/FreeTubeApp/FreeTube
hide `Most Popular` if invidious is disabled (#2772)
This commit is contained in:
parent
8f55a648b1
commit
f46132ce25
|
@ -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
|
||||
},
|
||||
|
|
|
@ -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')"
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
</p>
|
||||
</div>
|
||||
<div
|
||||
v-if="!hidePopularVideos"
|
||||
v-if="!hidePopularVideos && (backendFallback || backendPreference === 'invidious')"
|
||||
class="navOption mobileHidden"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
|
|
Loading…
Reference in New Issue