pleroma-fe/src/components/settings_modal/tabs/notifications.js
2020-05-03 17:36:12 +03:00

28 lines
589 B
JavaScript

import Checkbox from '../../checkbox/checkbox.vue'
const Notifications = {
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 })
}
}
}
export default Notifications