initial work on settings modal
This commit is contained in:
parent
9b349b4019
commit
2e35289c33
26 changed files with 1530 additions and 927 deletions
27
src/components/settings_modal/tabs/notifications.js
Normal file
27
src/components/settings_modal/tabs/notifications.js
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue