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: {
|
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
|
||||||
},
|
},
|
||||||
|
|
|
@ -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')"
|
||||||
|
|
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue