From 0251197e249cc03b65805ed6805da72bf4573529 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 20 Apr 2020 11:20:12 +0200 Subject: Factorize rest-table and fix/simplify SQL --- client/src/app/shared/rest/rest-table.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared/rest/rest-table.ts') diff --git a/client/src/app/shared/rest/rest-table.ts b/client/src/app/shared/rest/rest-table.ts index 5954a7ba1..891fb7b2b 100644 --- a/client/src/app/shared/rest/rest-table.ts +++ b/client/src/app/shared/rest/rest-table.ts @@ -7,11 +7,13 @@ import { debounceTime, distinctUntilChanged } from 'rxjs/operators' export abstract class RestTable { abstract totalRecords: number - abstract rowsPerPage: number abstract sort: SortMeta abstract pagination: RestPagination search: string + rowsPerPageOptions = [ 10, 20, 50, 100 ] + rowsPerPage = this.rowsPerPageOptions[0] + private searchStream: Subject abstract getIdentifier (): string -- cgit v1.2.3