mirror of https://github.com/FreeTubeApp/FreeTube
36 lines
951 B
JavaScript
36 lines
951 B
JavaScript
import { defineComponent } from 'vue'
|
|
import { mapActions } from 'vuex'
|
|
import FtSettingsSection from '../ft-settings-section/ft-settings-section.vue'
|
|
import FtToggleSwitch from '../ft-toggle-switch/ft-toggle-switch.vue'
|
|
|
|
export default defineComponent({
|
|
name: 'SubscriptionSettings',
|
|
components: {
|
|
'ft-settings-section': FtSettingsSection,
|
|
'ft-toggle-switch': FtToggleSwitch
|
|
},
|
|
data: function () {
|
|
return {
|
|
title: 'Subscription Settings'
|
|
}
|
|
},
|
|
computed: {
|
|
hideWatchedSubs: function () {
|
|
return this.$store.getters.getHideWatchedSubs
|
|
},
|
|
useRssFeeds: function () {
|
|
return this.$store.getters.getUseRssFeeds
|
|
},
|
|
fetchSubscriptionsAutomatically: function () {
|
|
return this.$store.getters.getFetchSubscriptionsAutomatically
|
|
}
|
|
},
|
|
methods: {
|
|
...mapActions([
|
|
'updateHideWatchedSubs',
|
|
'updateUseRssFeeds',
|
|
'updateFetchSubscriptionsAutomatically'
|
|
])
|
|
}
|
|
})
|