ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject [2/2] ambari git commit: AMBARI-10650 Create widget wizard -> Choose type: Clicking on choose button should transition to next page. (atkach)
Date Wed, 22 Apr 2015 10:45:04 GMT
AMBARI-10650 Create widget wizard -> Choose type: Clicking on choose button should transition
to next page. (atkach)


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

Branch: refs/heads/trunk
Commit: 1ff5182eef64b2861e1742dc38dbd8d6c2d3f671
Parents: 24672f0
Author: Andrii Tkach <atkach@hortonworks.com>
Authored: Wed Apr 22 13:20:06 2015 +0300
Committer: Andrii Tkach <atkach@hortonworks.com>
Committed: Wed Apr 22 13:44:48 2015 +0300

----------------------------------------------------------------------
 .../controllers/main/service/widgets/create/step1_controller.js | 5 ++---
 ambari-web/app/templates/main/service/widgets/create/step1.hbs  | 3 ---
 2 files changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1ff5182e/ambari-web/app/controllers/main/service/widgets/create/step1_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/widgets/create/step1_controller.js b/ambari-web/app/controllers/main/service/widgets/create/step1_controller.js
index c5b97a7..92e9615 100644
--- a/ambari-web/app/controllers/main/service/widgets/create/step1_controller.js
+++ b/ambari-web/app/controllers/main/service/widgets/create/step1_controller.js
@@ -56,6 +56,7 @@ App.WidgetWizardStep1Controller = Em.Controller.extend({
 
   chooseOption: function (event) {
     this.set('widgetType', event.context);
+    this.next();
   },
 
   loadStep: function () {
@@ -67,9 +68,7 @@ App.WidgetWizardStep1Controller = Em.Controller.extend({
   },
 
   next: function () {
-    if (!this.get('isSubmitDisabled')) {
-      App.router.send('next');
-    }
+    App.router.send('next');
   }
 });
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/1ff5182e/ambari-web/app/templates/main/service/widgets/create/step1.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/service/widgets/create/step1.hbs b/ambari-web/app/templates/main/service/widgets/create/step1.hbs
index 846e04f..611b3b2 100644
--- a/ambari-web/app/templates/main/service/widgets/create/step1.hbs
+++ b/ambari-web/app/templates/main/service/widgets/create/step1.hbs
@@ -42,7 +42,4 @@
     </div>
   </div>
 
-  <div class="btn-area">
-    <button id="add-widget-step1-next" class="btn btn-success pull-right" {{bindAttr disabled="isSubmitDisabled"}}
{{action "next" target="controller"}}>{{t common.next}} &rarr;</button>
-  </div>
 </div>
\ No newline at end of file


Mime
View raw message