From dd9062ebf902e980e6cb8d1b7a5b95704b158415 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 13 Jun 2023 12:25:02 +0200 Subject: [PATCH] disable button change password, add invalid from validation observer --- frontend/src/components/UserSettings/UserPassword.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/UserSettings/UserPassword.vue b/frontend/src/components/UserSettings/UserPassword.vue index ed37cca1c..9eeac80d4 100644 --- a/frontend/src/components/UserSettings/UserPassword.vue +++ b/frontend/src/components/UserSettings/UserPassword.vue @@ -17,7 +17,7 @@
- + @@ -34,9 +34,9 @@
{{ $t('form.save') }} @@ -101,10 +101,7 @@ export default { }, computed: { disabled() { - return !( - this.form.newPassword.password !== '' && - this.form.newPassword.password !== this.form.newPassword.passwordRepeat - ) + return this.form.newPassword.password !== this.form.newPassword.passwordRepeat }, }, }