forked from AkkomaGang/akkoma-fe
27 lines
604 B
JavaScript
27 lines
604 B
JavaScript
import Checkbox from 'src/components/checkbox/checkbox.vue'
|
|
|
|
const NotificationsTab = {
|
|
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 NotificationsTab
|