2020-05-10 13:46:06 +10:00
|
|
|
import Checkbox from 'src/components/checkbox/checkbox.vue'
|
2020-05-04 00:36:12 +10:00
|
|
|
|
2020-05-10 13:46:06 +10:00
|
|
|
const NotificationsTab = {
|
2020-05-04 00:36:12 +10:00
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
activeTab: 'profile',
|
|
|
|
notificationSettings: this.$store.state.users.currentUser.notification_settings,
|
|
|
|
newDomainToMute: ''
|
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Checkbox
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
user () {
|
|
|
|
return this.$store.state.users.currentUser
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
updateNotificationSettings () {
|
|
|
|
this.$store.state.api.backendInteractor
|
|
|
|
.updateNotificationSettings({ settings: this.notificationSettings })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-10 13:46:06 +10:00
|
|
|
export default NotificationsTab
|