This is an automated email from the ASF dual-hosted git repository.

jialiang pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new b868d097ad AMBARI-26120:When selecting all hosts in install wizard 
step 6 page, the disabled host should be excluded (#3817)
b868d097ad is described below

commit b868d097ad4080068ab00f279c157af97c7cfb5b
Author: zhenye zhang <[email protected]>
AuthorDate: Fri Aug 30 10:14:25 2024 +0800

    AMBARI-26120:When selecting all hosts in install wizard step 6 page, the 
disabled host should be excluded (#3817)
---
 ambari-web/app/controllers/wizard/step6_controller.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ambari-web/app/controllers/wizard/step6_controller.js 
b/ambari-web/app/controllers/wizard/step6_controller.js
index 5952ed7219..c17514768c 100644
--- a/ambari-web/app/controllers/wizard/step6_controller.js
+++ b/ambari-web/app/controllers/wizard/step6_controller.js
@@ -250,7 +250,9 @@ App.WizardStep6Controller = 
Em.Controller.extend(App.HostComponentValidationMixi
     this.get('hosts').forEach(function (host) {
       host.checkboxes.filterProperty('isInstalled', false).forEach(function 
(checkbox) {
         if (checkbox.component === component) {
-          Em.set(checkbox, 'checked', checked);
+          if (!checkbox.isDisabled) {
+            Em.set(checkbox, 'checked', checked);
+          }
         }
       });
     });


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to