From 474f16674c3c1235a3ef409addfb935a22e083fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20Pe=C3=B1a?= <devilcius@gmail.com>
Date: Thu, 11 Nov 2021 19:05:11 +0000
Subject: [PATCH] Disables 'change password' button until both fields are
 filled (#1591)

MR !1405
---
 front/src/components/auth/Settings.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/front/src/components/auth/Settings.vue b/front/src/components/auth/Settings.vue
index bbd4ec8c2..046492fd7 100644
--- a/front/src/components/auth/Settings.vue
+++ b/front/src/components/auth/Settings.vue
@@ -80,7 +80,7 @@
             <password-input field-id="new-password-field" required v-model="new_password" />
           </div>
           <dangerous-button
-            :class="['ui', {'loading': isLoading}, 'warning', 'button']"
+            :class="['ui', {'loading': isLoading}, {disabled: !new_password || !old_password}, 'warning', 'button']"
             :action="submitPassword">
             <translate translate-context="Content/Settings/Button.Label">Change password</translate>
             <p slot="modal-header"><translate translate-context="Popup/Settings/Title">Change your password?</translate></p>
-- 
GitLab