You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2018/07/04 14:14:14 UTC

[ambari] branch branch-2.7 updated: AMBARI-24242 data-qa attribute present not for all properties

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

atkach pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 37cd6ef  AMBARI-24242 data-qa attribute present not for all properties
37cd6ef is described below

commit 37cd6ef4db9532ddb1d3994e4c5de97a617e40ff
Author: Andrii Tkach <at...@apache.org>
AuthorDate: Wed Jul 4 14:25:12 2018 +0300

    AMBARI-24242 data-qa attribute present not for all properties
---
 .../configs/widgets/service_config_password_field.hbs    | 16 ++++++++++++++--
 ambari-web/app/views/common/controls_view.js             |  2 +-
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/ambari-web/app/templates/common/configs/widgets/service_config_password_field.hbs b/ambari-web/app/templates/common/configs/widgets/service_config_password_field.hbs
index 0ce63a7..699e6ef 100644
--- a/ambari-web/app/templates/common/configs/widgets/service_config_password_field.hbs
+++ b/ambari-web/app/templates/common/configs/widgets/service_config_password_field.hbs
@@ -18,9 +18,21 @@
 
 <div class="row">
   <div class="col-md-6">
-    {{view Em.TextField class="form-control" readOnlyBinding="view.readOnly" valueBinding="view.serviceConfig.value" type="password" placeholderBinding="view.placeholder"}}
+    {{view Em.TextField
+           data-qaBinding="view.data-qa"
+           class="form-control"
+           readOnlyBinding="view.readOnly"
+           valueBinding="view.serviceConfig.value"
+           type="password"
+           placeholderBinding="view.placeholder"}}
   </div>
   <div class="col-md-6">
-    {{view Em.TextField class="form-control retyped-password" readOnlyBinding="view.readOnly" valueBinding="view.serviceConfig.retypedPassword" type="password" placeholderBinding="view.placeholderRetype"}}
+    {{view Em.TextField
+           data-qaBinding="view.data-qa"
+           class="form-control retyped-password"
+           readOnlyBinding="view.readOnly"
+           valueBinding="view.serviceConfig.retypedPassword"
+           type="password"
+           placeholderBinding="view.placeholderRetype"}}
   </div>
 </div>
\ No newline at end of file
diff --git a/ambari-web/app/views/common/controls_view.js b/ambari-web/app/views/common/controls_view.js
index 869cac7..50b4d63 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -300,7 +300,7 @@ App.ServiceConfigTextFieldWithUnit = Ember.View.extend(App.ServiceConfigPopoverS
  * Password control
  * @type {*}
  */
-App.ServiceConfigPasswordField = Ember.View.extend(App.ServiceConfigPopoverSupport, {
+App.ServiceConfigPasswordField = Ember.View.extend(App.ServiceConfigPopoverSupport, App.ServiceConfigCalculateId, {
 
   serviceConfig: null,