FreeTube/src/renderer/components/watch-video-recommendations/watch-video-recommendations.js

41 lines
970 B
JavaScript

import { defineComponent } from 'vue'
import { mapActions } from 'vuex'
import FtCard from '../ft-card/ft-card.vue'
import FtListVideoLazy from '../ft-list-video-lazy/ft-list-video-lazy.vue'
import FtToggleSwitch from '../ft-toggle-switch/ft-toggle-switch.vue'
export default defineComponent({
name: 'WatchVideoRecommendations',
components: {
'ft-card': FtCard,
'ft-list-video-lazy': FtListVideoLazy,
'ft-toggle-switch': FtToggleSwitch
},
props: {
data: {
type: Array,
required: true
},
showAutoplay: {
type: Boolean,
default: false
}
},
computed: {
listType: function () {
return this.$store.getters.getListType
},
playNextVideo: function () {
return this.$store.getters.getPlayNextVideo
},
hideRecommendedVideos: function () {
return this.$store.getters.getHideRecommendedVideos
}
},
methods: {
...mapActions([
'updatePlayNextVideo'
])
}
})