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 2015/04/22 12:45:04 UTC

[2/2] ambari git commit: AMBARI-10650 Create widget wizard -> Choose type: Clicking on choose button should transition to next page. (atkach)

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 <at...@hortonworks.com>
Authored: Wed Apr 22 13:20:06 2015 +0300
Committer: Andrii Tkach <at...@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