You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2014/04/08 02:04:44 UTC
[2/2] git commit: AMBARI-5381. Installer: 'Undo' button for repo
BaseURL is unnecessarily present. (xiwang via yusaku)
AMBARI-5381. Installer: 'Undo' button for repo BaseURL is unnecessarily present. (xiwang via yusaku)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/27b44300
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/27b44300
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/27b44300
Branch: refs/heads/branch-1.5.1
Commit: 27b4430037feecd2a1c0c1de3cad4ce5209951f7
Parents: 06730c6
Author: Yusaku Sako <yu...@hortonworks.com>
Authored: Mon Apr 7 16:57:05 2014 -0700
Committer: Yusaku Sako <yu...@hortonworks.com>
Committed: Mon Apr 7 17:01:38 2014 -0700
----------------------------------------------------------------------
ambari-web/app/views/wizard/step1_view.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/27b44300/ambari-web/app/views/wizard/step1_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/wizard/step1_view.js b/ambari-web/app/views/wizard/step1_view.js
index 17211fb..5734a4d 100644
--- a/ambari-web/app/views/wizard/step1_view.js
+++ b/ambari-web/app/views/wizard/step1_view.js
@@ -222,7 +222,7 @@ App.WizardStep1View = Em.View.extend({
group.set('empty-error', !os.baseUrl);
group.set('invalid-error', os.validation == 'icon-exclamation-sign');
group.set('validation', os.validation);
- group.set('undo', os.baseUrl != os.defaultBaseUrl);
+ group.set('undo', os.baseUrl != os.latestBaseUrl);
group.set('clearAll', os.baseUrl);
group.set('errorTitle', os.errorTitle);
group.set('errorContent', os.errorContent);
@@ -247,7 +247,7 @@ App.WizardStep1View = Em.View.extend({
os.selected = false;
targetGroup.set('baseUrl', os.latestBaseUrl);
targetGroup.set('latestBaseUrl', os.latestBaseUrl);
- targetGroup.set('undo', targetGroup.get('baseUrl') != targetGroup.get('defaultBaseUrl'));
+ targetGroup.set('undo', targetGroup.get('baseUrl') != targetGroup.get('latestBaseUrl'));
targetGroup.set('invalid-error', false);
targetGroup.set('validation', null);
targetGroup.set('clearAll', false);
@@ -327,7 +327,7 @@ App.WizardStep1View = Em.View.extend({
if (os.baseUrl != targetGroup.get('baseUrl')) {
os.baseUrl = targetGroup.get('baseUrl');
os.validation = null;
- targetGroup.set('undo', targetGroup.get('baseUrl') != targetGroup.get('defaultBaseUrl'));
+ targetGroup.set('undo', targetGroup.get('baseUrl') != targetGroup.get('latestBaseUrl'));
targetGroup.set('invalid-error', false);
targetGroup.set('validation', null);
targetGroup.set('clearAll', os.baseUrl);