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:
parent
588b488856
commit
bb3edb750f
|
@ -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
|
||||||
|
|
|
@ -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')"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue