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 () { 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' })