Repository: ambari Updated Branches: refs/heads/branch-2.5 f19a8e19a -> 59b50bac2
AMBARI-19453. Dashboard should display appropriate message if workflow data fetching api fails (Madhan Mohan Reddy via gauravn7) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/59b50bac Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/59b50bac Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/59b50bac Branch: refs/heads/branch-2.5 Commit: 59b50bac2528a44f8303d18cf3ba8dd149e5b937 Parents: f19a8e1 Author: Gaurav Nagar <[email protected]> Authored: Wed Jan 11 16:27:14 2017 +0530 Committer: Gaurav Nagar <[email protected]> Committed: Wed Jan 11 16:28:27 2017 +0530 ---------------------------------------------------------------------- .../src/main/resources/ui/app/routes/design/dashboardtab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/59b50bac/contrib/views/wfmanager/src/main/resources/ui/app/routes/design/dashboardtab.js ---------------------------------------------------------------------- diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/routes/design/dashboardtab.js b/contrib/views/wfmanager/src/main/resources/ui/app/routes/design/dashboardtab.js index ddb19af..78bc1c9 100644 --- a/contrib/views/wfmanager/src/main/resources/ui/app/routes/design/dashboardtab.js +++ b/contrib/views/wfmanager/src/main/resources/ui/app/routes/design/dashboardtab.js @@ -86,7 +86,7 @@ export default Ember.Route.extend({ ].join(""), page = (start - 1) / len + 1; return this.fetchJobs(url).catch(function(){ - this.controllerFor('dashboard').set('model',{error : "Remote API Failed"}); + this.controllerFor('design.dashboardtab').set('model',{error : "Remote API Failed"}); Ember.$("#loading").css("display", "none"); }.bind(this)).then(function (res) { if(!res){
