You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2014/09/19 17:16:15 UTC

git commit: AMBARI-7411. Slider View: After starting a stopped view, route to Apps table page. (onechiporenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk 69e8e9cc4 -> 843579eb2


AMBARI-7411. Slider View: After starting a stopped view, route to Apps table page. (onechiporenko)


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

Branch: refs/heads/trunk
Commit: 843579eb2926a48572111dec63167de3155b364a
Parents: 69e8e9c
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Fri Sep 19 18:14:02 2014 +0300
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Fri Sep 19 18:14:02 2014 +0300

----------------------------------------------------------------------
 .../ui/app/controllers/slider_app_controller.js          | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/843579eb/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app_controller.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app_controller.js b/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app_controller.js
index b2effa0..f042e38 100644
--- a/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app_controller.js
+++ b/contrib/views/slider/src/main/resources/ui/app/controllers/slider_app_controller.js
@@ -114,11 +114,20 @@ App.SliderAppController = Ember.ObjectController.extend(App.AjaxErrorHandler, {
           name: model.get('name'),
           state: "RUNNING"
         }
-      }
+      },
+      success: 'thawSuccessCallback'
     });
   },
 
   /**
+   * Redirect to Slider Apps Table page on successful thawing
+   * @method thawSuccessCallback
+   */
+  thawSuccessCallback: function () {
+    this.transitionToRoute('slider_apps.index');
+  },
+
+  /**
    * Do request to <strong>freeze</strong> current slider's app
    * @returns {$.ajax}
    * @method freeze