You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2016/06/17 00:45:17 UTC
ambari git commit: AMBARI-17287. UI: 'llap' queue is not shown in
dropdown even though recommendation says so. Shows 'llap' queue after save.
(jaimin)
Repository: ambari
Updated Branches:
refs/heads/branch-2.4 68b9cdad6 -> c0e97a561
AMBARI-17287. UI: 'llap' queue is not shown in dropdown even though recommendation says so. Shows 'llap' queue after save. (jaimin)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c0e97a56
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c0e97a56
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c0e97a56
Branch: refs/heads/branch-2.4
Commit: c0e97a561455aef907a75c91ee89ede6d7aacdc8
Parents: 68b9cda
Author: Jaimin Jetly <ja...@hortonworks.com>
Authored: Thu Jun 16 17:45:50 2016 -0700
Committer: Jaimin Jetly <ja...@hortonworks.com>
Committed: Thu Jun 16 17:47:07 2016 -0700
----------------------------------------------------------------------
.../common/configs/widgets/combo_config_widget_view.js | 13 +++++++++++++
1 file changed, 13 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/c0e97a56/ambari-web/app/views/common/configs/widgets/combo_config_widget_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/widgets/combo_config_widget_view.js b/ambari-web/app/views/common/configs/widgets/combo_config_widget_view.js
index 14504ae..ce9de0e 100644
--- a/ambari-web/app/views/common/configs/widgets/combo_config_widget_view.js
+++ b/ambari-web/app/views/common/configs/widgets/combo_config_widget_view.js
@@ -43,6 +43,19 @@ App.ComboConfigWidgetView = App.ConfigWidgetView.extend({
this._super();
this.toggleWidgetState();
this.initPopover();
+ this.addObserver('config.stackConfigProperty.valueAttributes.entries.[]', this, this.updateValuesList);
+ this.addObserver('controller.forceUpdateBoundaries', this, this.updateValuesList);
+ },
+
+ /**
+ * Update options list by recommendations
+ * @method updateValuesList
+ */
+ updateValuesList: function() {
+ if (!this.get('content')) {
+ this.set('content', Em.Object.create({}));
+ }
+ this.set('content.valuesList', this.convertToWidgetUnits(this.get('config.stackConfigProperty.valueAttributes')));
},
/**