2020-03-24 13:22:29 +00:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
name: 'SideNav',
|
|
|
|
data: function () {
|
|
|
|
return {
|
|
|
|
openMoreOptions: false
|
|
|
|
}
|
|
|
|
},
|
2021-06-14 17:54:03 +00:00
|
|
|
computed: {
|
|
|
|
hidePopularVideos: function () {
|
|
|
|
return this.$store.getters.getHidePopularVideos
|
|
|
|
},
|
|
|
|
hideTrendingVideos: function () {
|
|
|
|
return this.$store.getters.getHideTrendingVideos
|
2021-10-05 20:16:47 +00:00
|
|
|
},
|
|
|
|
hideLabelsSideBar: function () {
|
|
|
|
return this.$store.getters.getHideLabelsSideBar
|
|
|
|
},
|
|
|
|
applyNavIconExpand: function() {
|
|
|
|
return {
|
|
|
|
navIconExpand: this.hideLabelsSideBar
|
|
|
|
}
|
2021-06-14 17:54:03 +00:00
|
|
|
}
|
|
|
|
},
|
2020-03-24 13:22:29 +00:00
|
|
|
methods: {
|
|
|
|
navigate: function (route) {
|
|
|
|
this.openMoreOptions = false
|
|
|
|
this.$emit('navigate', route)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|