fix lint issues
This commit is contained in:
parent
61d40f40ae
commit
fe06beae18
|
@ -41,13 +41,14 @@ const UserSettings = {
|
||||||
private: { selected: this.newdefaultScope === 'private' },
|
private: { selected: this.newdefaultScope === 'private' },
|
||||||
direct: { selected: this.newdefaultScope === 'direct' }
|
direct: { selected: this.newdefaultScope === 'direct' }
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateProfile () {
|
updateProfile () {
|
||||||
const name = this.newname
|
const name = this.newname
|
||||||
const description = this.newbio
|
const description = this.newbio
|
||||||
const locked = this.newlocked
|
const locked = this.newlocked
|
||||||
|
/* eslint-disable camelcase */
|
||||||
const default_scope = this.newdefaultScope
|
const default_scope = this.newdefaultScope
|
||||||
this.$store.state.api.backendInteractor.updateProfile({params: {name, description, locked, default_scope}}).then((user) => {
|
this.$store.state.api.backendInteractor.updateProfile({params: {name, description, locked, default_scope}}).then((user) => {
|
||||||
if (!user.error) {
|
if (!user.error) {
|
||||||
|
@ -55,6 +56,7 @@ const UserSettings = {
|
||||||
this.$store.commit('setCurrentUser', user)
|
this.$store.commit('setCurrentUser', user)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
/* eslint-enable camelcase */
|
||||||
},
|
},
|
||||||
changeVis (visibility) {
|
changeVis (visibility) {
|
||||||
this.newdefaultScope = visibility
|
this.newdefaultScope = visibility
|
||||||
|
|
Loading…
Reference in New Issue