initial work on settings modal

This commit is contained in:
Henry Jameson 2020-05-03 17:36:12 +03:00
parent 9b349b4019
commit 2e35289c33
26 changed files with 1530 additions and 927 deletions

View file

@ -0,0 +1,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