Repository: ambari Updated Branches: refs/heads/trunk 2200dda43 -> 4531f7337
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/4531f733 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4531f733 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4531f733 Branch: refs/heads/trunk Commit: 4531f733742d933b85d9437b68cc2dc7b24befce Parents: 2200dda Author: Sangeeta Ravindran <sangee...@apache.org> Authored: Thu Jan 19 14:55:53 2017 -0800 Committer: Sangeeta Ravindran <sangee...@apache.org> Committed: Thu Jan 19 14:55:53 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/4531f733/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);