diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-20 11:20:12 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-05-01 16:41:02 +0200 |
commit | 0251197e249cc03b65805ed6805da72bf4573529 (patch) | |
tree | 3aae202fd1ea24bac5cd7f2c380ffe50aae189a0 /client/src/app/shared/rest | |
parent | b8cf27c0f86d205a279d03b83e0e6728f46da67f (diff) | |
download | PeerTube-0251197e249cc03b65805ed6805da72bf4573529.tar.gz PeerTube-0251197e249cc03b65805ed6805da72bf4573529.tar.zst PeerTube-0251197e249cc03b65805ed6805da72bf4573529.zip |
Factorize rest-table and fix/simplify SQL
Diffstat (limited to 'client/src/app/shared/rest')
-rw-r--r-- | client/src/app/shared/rest/rest-table.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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' | |||
7 | export abstract class RestTable { | 7 | export abstract class RestTable { |
8 | 8 | ||
9 | abstract totalRecords: number | 9 | abstract totalRecords: number |
10 | abstract rowsPerPage: number | ||
11 | abstract sort: SortMeta | 10 | abstract sort: SortMeta |
12 | abstract pagination: RestPagination | 11 | abstract pagination: RestPagination |
13 | 12 | ||
14 | search: string | 13 | search: string |
14 | rowsPerPageOptions = [ 10, 20, 50, 100 ] | ||
15 | rowsPerPage = this.rowsPerPageOptions[0] | ||
16 | |||
15 | private searchStream: Subject<string> | 17 | private searchStream: Subject<string> |
16 | 18 | ||
17 | abstract getIdentifier (): string | 19 | abstract getIdentifier (): string |