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 openMoreOptions: false
} }
}, },
computed: {
hidePopularVideos: function () {
return this.$store.getters.getHidePopularVideos
},
hideTrendingVideos: function () {
return this.$store.getters.getHideTrendingVideos
}
},
methods: { methods: {
navigate: function (route) { navigate: function (route) {
this.openMoreOptions = false this.openMoreOptions = false

View File

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