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 <onechipore...@apache.org> Authored: Fri Sep 19 18:14:02 2014 +0300 Committer: Oleg Nechiporenko <onechipore...@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