minor linting
This commit is contained in:
@@ -87,13 +87,13 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async createUser () {
|
async createUser () {
|
||||||
if (!this.$refs.user_form.validate()) return
|
if (!this.$refs.user_form.validate()) { return }
|
||||||
try {
|
try {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
const user = await this.$axios.$post('/user', this.new_user)
|
const user = await this.$axios.$post('/user', this.new_user)
|
||||||
this.new_user = { email: '', is_admin: false }
|
this.new_user = { email: '', is_admin: false }
|
||||||
|
|
||||||
this.$root.$message('admin.user_create_ok', { color: 'success'})
|
this.$root.$message('admin.user_create_ok', { color: 'success' })
|
||||||
this.users_.push(user)
|
this.users_.push(user)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.$root.$message(e, { color: 'error' })
|
this.$root.$message(e, { color: 'error' })
|
||||||
|
|||||||
Reference in New Issue
Block a user