Hide trending and most popular when set to hidden (Portrait Mode) (#1324)

* hide trending & popular videos from bottom nav

* add computed properties for Hide Popular & Hide Trending
This commit is contained in:
ChunkyProgrammer 2021-06-14 13:54:03 -04:00 committed by GitHub
parent 588b488856
commit bb3edb750f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,14 @@ export default Vue.extend({
openMoreOptions: false
}
},
computed: {
hidePopularVideos: function () {
return this.$store.getters.getHidePopularVideos
},
hideTrendingVideos: function () {
return this.$store.getters.getHideTrendingVideos
}
},
methods: {
navigate: function (route) {
this.openMoreOptions = false

View File

@ -17,6 +17,7 @@
class="moreOptionContainer"
>
<div
v-if="!hideTrendingVideos"
class="navOption"
@click="navigate('trending')"
>
@ -29,6 +30,7 @@
</p>
</div>
<div
v-if="!hidePopularVideos"
class="navOption"
@click="navigate('popular')"
>