2020-10-06 02:27:32 +00:00
|
|
|
import Vue from 'vue'
|
|
|
|
import { mapActions } from 'vuex'
|
|
|
|
import FtCard from '../ft-card/ft-card.vue'
|
|
|
|
import FtToggleSwitch from '../ft-toggle-switch/ft-toggle-switch.vue'
|
|
|
|
import FtButton from '../ft-button/ft-button.vue'
|
|
|
|
import FtSelect from '../ft-select/ft-select.vue'
|
|
|
|
import FtFlexBox from '../ft-flex-box/ft-flex-box.vue'
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
name: 'PlayerSettings',
|
|
|
|
components: {
|
|
|
|
'ft-card': FtCard,
|
|
|
|
'ft-toggle-switch': FtToggleSwitch,
|
|
|
|
'ft-button': FtButton,
|
|
|
|
'ft-select': FtSelect,
|
|
|
|
'ft-flex-box': FtFlexBox
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
hideVideoViews: function () {
|
|
|
|
return this.$store.getters.getHideVideoViews
|
|
|
|
},
|
|
|
|
hideVideoLikesAndDislikes: function () {
|
|
|
|
return this.$store.getters.getHideVideoLikesAndDislikes
|
|
|
|
},
|
|
|
|
hideChannelSubscriptions: function () {
|
|
|
|
return this.$store.getters.getHideChannelSubscriptions
|
|
|
|
},
|
|
|
|
hideCommentLikes: function () {
|
|
|
|
return this.$store.getters.getHideCommentLikes
|
|
|
|
},
|
|
|
|
hideRecommendedVideos: function () {
|
|
|
|
return this.$store.getters.getHideRecommendedVideos
|
|
|
|
},
|
|
|
|
hideTrendingVideos: function () {
|
|
|
|
return this.$store.getters.getHideTrendingVideos
|
|
|
|
},
|
|
|
|
hidePopularVideos: function () {
|
|
|
|
return this.$store.getters.getHidePopularVideos
|
|
|
|
},
|
2021-03-06 16:21:22 +00:00
|
|
|
hidePlaylists: function () {
|
|
|
|
return this.$store.getters.getHidePlaylists
|
|
|
|
},
|
2020-10-06 02:27:32 +00:00
|
|
|
hideLiveChat: function () {
|
|
|
|
return this.$store.getters.getHideLiveChat
|
2021-01-10 03:11:42 +00:00
|
|
|
},
|
|
|
|
hideActiveSubscriptions: function () {
|
|
|
|
return this.$store.getters.getHideActiveSubscriptions
|
2022-06-21 06:14:15 +00:00
|
|
|
},
|
|
|
|
hideVideoDescription: function () {
|
|
|
|
return this.$store.getters.getHideVideoDescription
|
|
|
|
},
|
|
|
|
hideComments: function () {
|
|
|
|
return this.$store.getters.getHideComments
|
|
|
|
},
|
|
|
|
hideLiveStreams: function() {
|
|
|
|
return this.$store.getters.getHideLiveStreams
|
|
|
|
},
|
|
|
|
hideSharingActions: function() {
|
|
|
|
return this.$store.getters.getHideSharingActions
|
2020-10-06 02:27:32 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
2020-10-06 13:38:35 +00:00
|
|
|
handleHideRecommendedVideos: function (value) {
|
|
|
|
if (value) {
|
|
|
|
this.updatePlayNextVideo(false)
|
|
|
|
}
|
|
|
|
|
|
|
|
this.updateHideRecommendedVideos(value)
|
|
|
|
},
|
|
|
|
|
2020-10-06 02:27:32 +00:00
|
|
|
...mapActions([
|
|
|
|
'updateHideVideoViews',
|
|
|
|
'updateHideVideoLikesAndDislikes',
|
|
|
|
'updateHideChannelSubscriptions',
|
|
|
|
'updateHideCommentLikes',
|
|
|
|
'updateHideRecommendedVideos',
|
|
|
|
'updateHideTrendingVideos',
|
|
|
|
'updateHidePopularVideos',
|
2021-03-06 16:21:22 +00:00
|
|
|
'updateHidePlaylists',
|
2020-10-06 13:38:35 +00:00
|
|
|
'updateHideLiveChat',
|
2021-01-10 03:11:42 +00:00
|
|
|
'updateHideActiveSubscriptions',
|
2020-10-06 13:38:35 +00:00
|
|
|
'updatePlayNextVideo',
|
2022-06-21 06:14:15 +00:00
|
|
|
'updateDefaultTheatreMode',
|
|
|
|
'updateHideVideoDescription',
|
|
|
|
'updateHideComments',
|
|
|
|
'updateHideLiveStreams',
|
|
|
|
'updateHideSharingActions'
|
2020-10-06 02:27:32 +00:00
|
|
|
])
|
|
|
|
}
|
|
|
|
})
|