Browse Source

fix(admin-ui): Fix asset picker dialog filtering

Closes #113
Michael Bromley 6 years ago
parent
commit
16e7fc15ef

+ 10 - 2
admin-ui/src/app/catalog/components/asset-picker-dialog/asset-picker-dialog.component.ts

@@ -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() {