minor linting

This commit is contained in:
les
2021-02-12 16:56:09 +01:00
parent 52e40bc61b
commit 0ec5eb206d

View File

@@ -87,13 +87,13 @@ export default {
}
},
async createUser () {
if (!this.$refs.user_form.validate()) return
if (!this.$refs.user_form.validate()) { return }
try {
this.loading = true
const user = await this.$axios.$post('/user', this.new_user)
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)
} catch (e) {
this.$root.$message(e, { color: 'error' })