This is an automated email from the ASF dual-hosted git repository.
atkach 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 f7a5762 AMBARI-23401 Problems while selecting the property uniquely
in Configurations screen while installation
f7a5762 is described below
commit f7a57625d0c448479a02f8e4f4674df626fed4b4
Author: Andrii Tkach <[email protected]>
AuthorDate: Thu Mar 29 18:12:32 2018 +0300
AMBARI-23401 Problems while selecting the property uniquely in
Configurations screen while installation
---
ambari-web/app/views/common/controls_view.js | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/ambari-web/app/views/common/controls_view.js
b/ambari-web/app/views/common/controls_view.js
index 901547b..7c28a48 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -200,12 +200,8 @@ App.WidgetValueObserver =
Em.Mixin.create(App.ValueObserver, {
*/
App.ServiceConfigCalculateId = Ember.Mixin.create({
'data-qa': Ember.computed(function () {
- var config = this.get('config') && this.get('config.widget') ?
this.get('config') : this.get('serviceConfig') || {};
- var label = Em.get(config, 'name') ? Em.get(config,
'name').toLowerCase().replace(/\./g, '-') : '',
- fileName = Em.get(config, 'filename') ? Em.get(config,
'filename').toLowerCase().replace(/\./g, '-') : '',
- group = Em.get(config, 'group.name') || 'default',
- isOrigin = Em.getWithDefault(config, 'compareConfigs.length', 0) > 0 ?
'-origin' : '';
- return 'service-config-' + label + '-' + fileName + '-' + group + isOrigin;
+ const config = this.get('config') && this.get('config.widget') ?
this.get('config') : this.get('serviceConfig') || {};
+ return Em.get(config, 'name') || '';
})
});
--
To stop receiving notification emails like this one, please contact
[email protected].