Repository: ambari Updated Branches: refs/heads/branch-2.5 0fedb802e -> e246780f9
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/e246780f Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e246780f Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e246780f Branch: refs/heads/branch-2.5 Commit: e246780f97fce494ae6e6aa6568f9bf6c7736d75 Parents: 0fedb80 Author: Sangeeta Ravindran <[email protected]> Authored: Fri Mar 17 15:56:34 2017 -0700 Committer: Sangeeta Ravindran <[email protected]> Committed: Fri Mar 17 15:56:34 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/e246780f/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'),
