aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/tabs/notifications.js
blob: 0a870b3f32a2335945d9fba4c62618499b1e6d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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