diff options
| author | William Pitcock <nenolod@dereferenced.org> | 2018-05-29 14:19:28 +0000 |
|---|---|---|
| committer | William Pitcock <nenolod@dereferenced.org> | 2018-05-29 14:19:28 +0000 |
| commit | 7a08ba43e2dc55d7c207f091700676cb886984ad (patch) | |
| tree | c635855d38d4d913acbd4409b0efc3f660b19c08 /src/components/user_settings/user_settings.js | |
| parent | 648f31f44c2e4daee3394b0df10b3f9f5ca41c66 (diff) | |
user settings: enable locking/unlocking an account
Diffstat (limited to 'src/components/user_settings/user_settings.js')
| -rw-r--r-- | src/components/user_settings/user_settings.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js index b6026e18..443e63dd 100644 --- a/src/components/user_settings/user_settings.js +++ b/src/components/user_settings/user_settings.js @@ -5,6 +5,7 @@ const UserSettings = { return { newname: this.$store.state.users.currentUser.name, newbio: this.$store.state.users.currentUser.description, + newlocked: this.$store.state.users.currentUser.locked, followList: null, followImportError: false, followsImported: false, @@ -34,7 +35,8 @@ const UserSettings = { updateProfile () { const name = this.newname const description = this.newbio - this.$store.state.api.backendInteractor.updateProfile({params: {name, description}}).then((user) => { + const locked = this.newlocked + this.$store.state.api.backendInteractor.updateProfile({params: {name, description, locked}}).then((user) => { if (!user.error) { this.$store.commit('addNewUsers', [user]) this.$store.commit('setCurrentUser', user) |
