Repository: ambari Updated Branches: refs/heads/trunk 566db4afd -> 55e2af586
AMBARI-20352: WFM: Page numbers on workflow dashboard are not calculated correctly (sangeetar) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/55e2af58 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/55e2af58 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/55e2af58 Branch: refs/heads/trunk Commit: 55e2af58678dd83162a1d63a6d22211ae48f2356 Parents: 566db4a Author: Sangeeta Ravindran <[email protected]> Authored: Fri Mar 17 17:17:58 2017 -0700 Committer: Sangeeta Ravindran <[email protected]> Committed: Fri Mar 17 17:17:58 2017 -0700 ---------------------------------------------------------------------- .../wfmanager/src/main/resources/ui/app/components/search-table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/55e2af58/contrib/views/wfmanager/src/main/resources/ui/app/components/search-table.js ---------------------------------------------------------------------- diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/search-table.js b/contrib/views/wfmanager/src/main/resources/ui/app/components/search-table.js index 5f92d6f..01eb4ea 100644 --- a/contrib/views/wfmanager/src/main/resources/ui/app/components/search-table.js +++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/search-table.js @@ -25,7 +25,7 @@ export default Ember.Component.extend({ if(Ember.isBlank(this.get('jobs.start'))){ return 1; } - var roundedStart = this.get('jobs.start') - this.get('jobs.start') % 10; + var roundedStart = this.get('jobs.start') - this.get('jobs.start') % this.get('jobs.pageSize'); return (roundedStart / this.get('jobs.pageSize'))+1; }), userName : Ember.computed.alias('userInfo.userName'),
