Skip to content

Commit

Permalink
fix(admin-ui): Fix asset picker dialog filtering
Browse files Browse the repository at this point in the history
Closes #113
  • Loading branch information
michaelbromley committed Jun 11, 2019
1 parent 17ac985 commit 16e7fc1
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,20 @@ export class AssetPickerDialogComponent implements OnInit, OnDestroy, Dialog<Ass

pageChange(page: number) {
this.paginationConfig.currentPage = page;
this.fetchPage(this.paginationConfig.currentPage, this.paginationConfig.itemsPerPage);
this.fetchPage(
this.paginationConfig.currentPage,
this.paginationConfig.itemsPerPage,
this.searchTerm.value,
);
}

itemsPerPageChange(itemsPerPage: number) {
this.paginationConfig.itemsPerPage = itemsPerPage;
this.fetchPage(this.paginationConfig.currentPage, this.paginationConfig.itemsPerPage);
this.fetchPage(
this.paginationConfig.currentPage,
this.paginationConfig.itemsPerPage,
this.searchTerm.value,
);
}

cancel() {
Expand Down

0 comments on commit 16e7fc1

Please sign in to comment.