You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by is...@apache.org on 2018/06/13 17:21:19 UTC

[ambari] branch trunk updated: [AMBARI-24092] Need xpaths for content/textarea to be unique.

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

ishanbha 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 85c544c  [AMBARI-24092] Need xpaths for content/textarea to be unique.
85c544c is described below

commit 85c544c118d6fd5b08aad5b826c2e224fd5c026d
Author: Ishan Bhatt <is...@gmail.com>
AuthorDate: Wed Jun 13 08:20:04 2018 -0700

    [AMBARI-24092] Need xpaths for content/textarea to be unique.
---
 ambari-web/app/views/common/controls_view.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ambari-web/app/views/common/controls_view.js b/ambari-web/app/views/common/controls_view.js
index 22ad28e..869cac7 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -201,7 +201,11 @@ App.WidgetValueObserver = Em.Mixin.create(App.ValueObserver, {
 App.ServiceConfigCalculateId = Ember.Mixin.create({
   'data-qa': Ember.computed(function () {
     const config = this.get('config') && this.get('config.widget') ? this.get('config') : this.get('serviceConfig') || {};
-    return Em.get(config, 'name') || '';
+    const configName = Em.get(config, 'name') || '';
+    if (configName === 'content') {
+      return Em.get(config, 'id') || '';
+    }
+    return configName;
   })
 });
 

-- 
To stop receiving notification emails like this one, please contact
ishanbha@apache.org.