From e2ebc93c9818beeacd200a0004906f2ca9ba2cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Maro=C5=A1i?= Date: Fri, 16 Nov 2018 11:16:54 +0100 Subject: [PATCH] Fixed disabled password input. fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1647013 --- app/assets/javascripts/components/auth-credentials.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/auth-credentials.js b/app/assets/javascripts/components/auth-credentials.js index 7abb9e5fa31..90d074aec3e 100644 --- a/app/assets/javascripts/components/auth-credentials.js +++ b/app/assets/javascripts/components/auth-credentials.js @@ -60,7 +60,9 @@ ManageIQ.angular.app.component('authCredentials', { }; this.showChangePasswordLinks = function(index) { - return !vm.newRecord && (vm.modelCopy[vm.prefix + '_protocol'] === vm.formModel[vm.prefix + '_protocol']) && vm.formModel[index]; + var matchPassword = vm.modelCopy[vm.prefix + '_password'] === vm.formModel[vm.prefix + '_password']; + return vm.bChangeStoredPassword || + !vm.newRecord && (vm.modelCopy[vm.prefix + '_protocol'] === vm.formModel[vm.prefix + '_protocol'] && matchPassword) && vm.formModel[index]; }; this.showVerify = function(userid) {