diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-25 11:35:09 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-25 11:35:09 +0200 |
commit | 42374cf5d40b8266cf7b0ee68732c436c1d45a06 (patch) | |
tree | f35db787e467826d07ea9e1a4139d0a5c79176b1 /client/src/app/shared | |
parent | f627b712c95cb7a867499534424f63d409f21ef7 (diff) | |
download | PeerTube-42374cf5d40b8266cf7b0ee68732c436c1d45a06.tar.gz PeerTube-42374cf5d40b8266cf7b0ee68732c436c1d45a06.tar.zst PeerTube-42374cf5d40b8266cf7b0ee68732c436c1d45a06.zip |
Fix client admin
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/rest/rest-data-source.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/rest/rest-data-source.ts b/client/src/app/shared/rest/rest-data-source.ts index 2ef5d38da..7956637e0 100644 --- a/client/src/app/shared/rest/rest-data-source.ts +++ b/client/src/app/shared/rest/rest-data-source.ts | |||
@@ -19,7 +19,7 @@ export class RestDataSource extends ServerDataSource { | |||
19 | } | 19 | } |
20 | 20 | ||
21 | protected addSortRequestOptions (requestOptions: RequestOptionsArgs) { | 21 | protected addSortRequestOptions (requestOptions: RequestOptionsArgs) { |
22 | const searchParams = requestOptions.search as URLSearchParams | 22 | const searchParams = requestOptions.params as URLSearchParams |
23 | 23 | ||
24 | if (this.sortConf) { | 24 | if (this.sortConf) { |
25 | this.sortConf.forEach((fieldConf) => { | 25 | this.sortConf.forEach((fieldConf) => { |
@@ -33,7 +33,7 @@ export class RestDataSource extends ServerDataSource { | |||
33 | } | 33 | } |
34 | 34 | ||
35 | protected addPagerRequestOptions (requestOptions: RequestOptionsArgs) { | 35 | protected addPagerRequestOptions (requestOptions: RequestOptionsArgs) { |
36 | const searchParams = requestOptions.search as URLSearchParams | 36 | const searchParams = requestOptions.params as URLSearchParams |
37 | 37 | ||
38 | if (this.pagingConf && this.pagingConf['page'] && this.pagingConf['perPage']) { | 38 | if (this.pagingConf && this.pagingConf['page'] && this.pagingConf['perPage']) { |
39 | const perPage = this.pagingConf['perPage'] | 39 | const perPage = this.pagingConf['perPage'] |