wire up notification settings
This commit is contained in:
parent
ab34a75bcf
commit
28ca504576
6 changed files with 87 additions and 3 deletions
|
@ -55,7 +55,8 @@ const UserSettings = {
|
|||
changePasswordInputs: [ '', '', '' ],
|
||||
changedPassword: false,
|
||||
changePasswordError: false,
|
||||
activeTab: 'profile'
|
||||
activeTab: 'profile',
|
||||
notificationSettings: this.$store.state.users.currentUser.notification_settings
|
||||
}
|
||||
},
|
||||
created () {
|
||||
|
@ -128,6 +129,10 @@ const UserSettings = {
|
|||
this.$store.commit('setCurrentUser', user)
|
||||
})
|
||||
},
|
||||
updateNotificationSettings () {
|
||||
this.$store.state.api.backendInteractor
|
||||
.updateNotificationSettings({ settings: this.notificationSettings })
|
||||
},
|
||||
changeVis (visibility) {
|
||||
this.newDefaultScope = visibility
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue