You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2014/09/03 18:11:36 UTC
git commit: AMBARI-7135 Empty dropdown when only one config version
present. (atkach)
Repository: ambari
Updated Branches:
refs/heads/trunk f1e26f1c5 -> 6e917d1f4
AMBARI-7135 Empty dropdown when only one config version present. (atkach)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/6e917d1f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/6e917d1f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/6e917d1f
Branch: refs/heads/trunk
Commit: 6e917d1f43b6b500f0de0b040d6009f89005a27d
Parents: f1e26f1
Author: atkach <at...@hortonworks.com>
Authored: Wed Sep 3 19:09:28 2014 +0300
Committer: atkach <at...@hortonworks.com>
Committed: Wed Sep 3 19:09:28 2014 +0300
----------------------------------------------------------------------
ambari-web/app/views/common/configs/config_history_flow.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/6e917d1f/ambari-web/app/views/common/configs/config_history_flow.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/config_history_flow.js b/ambari-web/app/views/common/configs/config_history_flow.js
index bbb1ad8..5813eeb 100644
--- a/ambari-web/app/views/common/configs/config_history_flow.js
+++ b/ambari-web/app/views/common/configs/config_history_flow.js
@@ -112,8 +112,8 @@ App.ConfigHistoryFlowView = Em.View.extend({
* enable actions to manipulate version only after it's loaded
*/
versionActionsDisabled: function () {
- return !this.get('controller.versionLoaded');
- }.property('controller.versionLoaded'),
+ return !this.get('controller.versionLoaded') || this.get('dropDownList.length') === 0;
+ }.property('controller.versionLoaded', 'dropDownList.length'),
/**
* enable discard to manipulate version only after it's loaded and any property is changed