Skip to content

Commit

Permalink
Fix: Pagination Issues when list has 100s of options
Browse files Browse the repository at this point in the history
  • Loading branch information
Labedlam committed Nov 14, 2018
1 parent d0cf099 commit 720b79b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@
[collectionSize]="orders.Meta.TotalCount"
[pageSize]="orders.Meta.PageSize"
[(page)]="orders.Meta.Page"
(pageChange)="changePage($event)"></ngb-pagination>
(pageChange)="changePage($event)"
[rotate]="true"></ngb-pagination>
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ <h5 class="card-title mb-0">
[collectionSize]="productList.Meta.TotalCount"
[pageSize]="productList.Meta.PageSize"
[(page)]="productList.Meta.Page"
(pageChange)="changePage($event)"></ngb-pagination>
(pageChange)="changePage($event)"
[rotate]="true"></ngb-pagination>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@
[collectionSize]="meta.TotalCount"
[pageSize]="meta.PageSize"
[(page)]="meta.Page"
(pageChange)="requestOptionsUpdated.emit({ page: $event })"></ngb-pagination>
(pageChange)="requestOptionsUpdated.emit({ page: $event })"
[rotate]="true"></ngb-pagination>
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { GenericBrowseComponent } from '@app-buyer/shared/components/generic-browse/generic-browse.component';
import { Directive, Input, Output, EventEmitter } from '@angular/core';
import {
Directive,
Input,
Output,
EventEmitter,
NO_ERRORS_SCHEMA,
} from '@angular/core';
import { By } from '@angular/platform-browser';

describe('GenericBrowseComponent', () => {
Expand Down Expand Up @@ -35,6 +41,7 @@ describe('GenericBrowseComponent', () => {
MockSearchDirective,
MockPaginationDirective,
],
schemas: [NO_ERRORS_SCHEMA], // Ignore template errors: remove if tests are added to test template
}).compileComponents();
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
[collectionSize]="meta.TotalCount"
[pageSize]="meta.PageSize"
[(page)]="meta.Page"
(pageChange)="page.emit($event)"></ngb-pagination>
(pageChange)="page.emit($event)"
[rotate]="true"></ngb-pagination>

0 comments on commit 720b79b

Please sign in to comment.