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:58:03 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/e27a348e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e27a348e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e27a348e

Branch: refs/heads/branch-2.4
Commit: e27a348ea38a6d7fa52e313e50f2a564a652f326
Parents: 6dd59a5
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:58:01 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/e27a348e/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