forked from AkkomaGang/akkoma-fe
clean up
This commit is contained in:
parent
ac0b45fa14
commit
2c4af6693a
1 changed files with 10 additions and 20 deletions
|
@ -110,31 +110,21 @@ const UserSettings = {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateProfile () {
|
updateProfile () {
|
||||||
const note = this.newBio
|
|
||||||
const locked = this.newLocked
|
|
||||||
// Backend notation.
|
|
||||||
/* eslint-disable camelcase */
|
|
||||||
const display_name = this.newName
|
|
||||||
const default_scope = this.newDefaultScope
|
|
||||||
const no_rich_text = this.newNoRichText
|
|
||||||
const hide_follows = this.hideFollows
|
|
||||||
const hide_followers = this.hideFollowers
|
|
||||||
const show_role = this.showRole
|
|
||||||
|
|
||||||
/* eslint-enable camelcase */
|
|
||||||
this.$store.state.api.backendInteractor
|
this.$store.state.api.backendInteractor
|
||||||
.updateProfile({
|
.updateProfile({
|
||||||
params: {
|
params: {
|
||||||
display_name,
|
note: this.newBio,
|
||||||
note,
|
locked: this.newLocked,
|
||||||
locked,
|
source: {
|
||||||
|
privacy: this.newDefaultScope
|
||||||
|
},
|
||||||
// Backend notation.
|
// Backend notation.
|
||||||
/* eslint-disable camelcase */
|
/* eslint-disable camelcase */
|
||||||
default_scope,
|
display_name: this.newName,
|
||||||
no_rich_text,
|
no_rich_text: this.newNoRichText,
|
||||||
hide_follows,
|
hide_follows: this.hideFollows,
|
||||||
hide_followers,
|
hide_followers: this.hideFollowers,
|
||||||
show_role
|
show_role: this.showRole
|
||||||
/* eslint-enable camelcase */
|
/* eslint-enable camelcase */
|
||||||
}}).then((user) => {
|
}}).then((user) => {
|
||||||
this.$store.commit('addNewUsers', [user])
|
this.$store.commit('addNewUsers', [user])
|
||||||
|
|
Loading…
Reference in a new issue