ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject [3/3] ambari git commit: AMBARI-12068 Set Recommended button is shown for disabled directory-type configs. (ababiichuk)
Date Mon, 22 Jun 2015 15:15:30 GMT
AMBARI-12068 Set Recommended button is shown for disabled directory-type configs. (ababiichuk)


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

Branch: refs/heads/branch-2.1
Commit: c4d2e839be44aefa5cc56f22bb37e339345d2973
Parents: 5545881
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Mon Jun 22 18:02:50 2015 +0300
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Mon Jun 22 18:15:15 2015 +0300

----------------------------------------------------------------------
 .../views/common/configs/widgets/directory_config_widget_view.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c4d2e839/ambari-web/app/views/common/configs/widgets/directory_config_widget_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/widgets/directory_config_widget_view.js b/ambari-web/app/views/common/configs/widgets/directory_config_widget_view.js
index 3f132ea..04af5ff 100644
--- a/ambari-web/app/views/common/configs/widgets/directory_config_widget_view.js
+++ b/ambari-web/app/views/common/configs/widgets/directory_config_widget_view.js
@@ -24,6 +24,10 @@ App.DirectoryConfigWidgetView = App.ConfigWidgetView.extend({
   templateName: require('templates/common/configs/widgets/directory_config_widget'),
   classNames: ['widget-config', 'directory-widget'],
 
+  disabled: function() {
+    return !this.get('config.isEditable');
+  }.property('config.isEditable'),
+
   /**
    * Control to edit value.
    *


Mime
View raw message