ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject [2/2] ambari git commit: AMBARI-17516. UI - Customize Atlas Service configs shows incorrect required properties and Next button after toggling type (alexantonenko)
Date Fri, 01 Jul 2016 10:55:15 GMT
AMBARI-17516. UI - Customize Atlas Service configs shows incorrect required properties and
Next button after toggling type (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/cccbc48a
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/cccbc48a
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/cccbc48a

Branch: refs/heads/trunk
Commit: cccbc48a74920980b2761e3a7cf49edd97b66ed2
Parents: b6ae19b
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Fri Jul 1 11:23:58 2016 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Fri Jul 1 13:55:12 2016 +0300

----------------------------------------------------------------------
 ambari-web/app/views/common/configs/widgets/config_widget_view.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/cccbc48a/ambari-web/app/views/common/configs/widgets/config_widget_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/widgets/config_widget_view.js b/ambari-web/app/views/common/configs/widgets/config_widget_view.js
index 86ae3f3..4f3515e 100644
--- a/ambari-web/app/views/common/configs/widgets/config_widget_view.js
+++ b/ambari-web/app/views/common/configs/widgets/config_widget_view.js
@@ -496,6 +496,9 @@ App.ConfigWidgetView = Em.View.extend(App.SupportsDependentConfigs, App.WidgetPo
         var valueAttribute = App.StackConfigValAttributesMap[key] || key;
         var conditionalConfig = serviceConfigs.filterProperty('filename',conditionalConfigFileName).findProperty('name',
conditionalConfigName);
         if (conditionalConfig) {
+          if (key === 'visible') {
+            conditionalConfig.set('hiddenBySection', !valueAttributes[key]);
+          }
           conditionalConfig.set(valueAttribute, valueAttributes[key]);
         }
       }


Mime
View raw message