29 lines
713 B
JavaScript
29 lines
713 B
JavaScript
import BooleanSetting from '../helpers/boolean_setting.vue'
|
|
import SharedComputedObject from '../helpers/shared_computed_object.js'
|
|
|
|
const NotificationsTab = {
|
|
data () {
|
|
return {
|
|
activeTab: 'profile',
|
|
notificationSettings: this.$store.state.users.currentUser.notification_settings,
|
|
newDomainToMute: ''
|
|
}
|
|
},
|
|
components: {
|
|
BooleanSetting
|
|
},
|
|
computed: {
|
|
user () {
|
|
return this.$store.state.users.currentUser
|
|
},
|
|
...SharedComputedObject()
|
|
},
|
|
methods: {
|
|
updateNotificationSettings () {
|
|
this.$store.state.api.backendInteractor
|
|
.updateNotificationSettings({ settings: this.notificationSettings })
|
|
}
|
|
}
|
|
}
|
|
|
|
export default NotificationsTab
|