From 0ec5eb206de21dbb6d74b9cad41a4aab84601b40 Mon Sep 17 00:00:00 2001 From: les Date: Fri, 12 Feb 2021 16:56:09 +0100 Subject: [PATCH] minor linting --- components/admin/Users.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/admin/Users.vue b/components/admin/Users.vue index 2d9a0ab3..3d61f180 100644 --- a/components/admin/Users.vue +++ b/components/admin/Users.vue @@ -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' })