Repository: ambari Updated Branches: refs/heads/branch-2.5 99bb98840 -> 4179186a0
AMBARI-19475: Workflow Manager View: Start record set to 1 even when there are no records (sangeetar) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4179186a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4179186a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4179186a Branch: refs/heads/branch-2.5 Commit: 4179186a0bdf9694b6c9bd9da75ac13af288fad9 Parents: 99bb988 Author: Sangeeta Ravindran <[email protected]> Authored: Thu Jan 19 14:20:07 2017 -0800 Committer: Sangeeta Ravindran <[email protected]> Committed: Thu Jan 19 14:20:07 2017 -0800 ---------------------------------------------------------------------- .../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/4179186a/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 78bc1c9..95d06fc 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 @@ -137,7 +137,7 @@ export default Ember.Route.extend({ res.pageSize = len; res.totalValue = res.total; res.page = page; - res.start = start; + res.start = res.total > 0 ? start : 0; res.end = (start + res.jobs.length - 1); res.time = new Date().getTime(); this.controllerFor('design.dashboardtab').set('model', res);
