diff options
| author | kaniini <nenolod@gmail.com> | 2019-06-01 05:16:15 +0000 |
|---|---|---|
| committer | kaniini <nenolod@gmail.com> | 2019-06-01 05:16:15 +0000 |
| commit | b4796ccbf6302056bf6f58e30d495334b830c41e (patch) | |
| tree | fbdbde8f70a3d5fb067d22285aba058ccd5ad678 /src/components/user_settings/user_settings.js | |
| parent | 9c0ec9b794dbf225dbdc4ed1e2d657cabf25101f (diff) | |
| parent | 855566f887cb9f705f62141b929bb9a3d089099c (diff) | |
Merge branch 'feature/notification-controls' into 'develop'
wire up notification settings
See merge request pleroma/pleroma-fe!809
Diffstat (limited to 'src/components/user_settings/user_settings.js')
| -rw-r--r-- | src/components/user_settings/user_settings.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js index 2418450c..ae36e5e8 100644 --- a/src/components/user_settings/user_settings.js +++ b/src/components/user_settings/user_settings.js @@ -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 }, |
