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/+admin/follows | |
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/+admin/follows')
3 files changed, 0 insertions, 5 deletions
diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.ts b/client/src/app/+admin/follows/followers-list/followers-list.component.ts index 00f447bb2..17352a601 100644 --- a/client/src/app/+admin/follows/followers-list/followers-list.component.ts +++ b/client/src/app/+admin/follows/followers-list/followers-list.component.ts | |||
@@ -14,8 +14,6 @@ import { I18n } from '@ngx-translate/i18n-polyfill' | |||
14 | export class FollowersListComponent extends RestTable implements OnInit { | 14 | export class FollowersListComponent extends RestTable implements OnInit { |
15 | followers: ActorFollow[] = [] | 15 | followers: ActorFollow[] = [] |
16 | totalRecords = 0 | 16 | totalRecords = 0 |
17 | rowsPerPageOptions = [ 20, 50, 100 ] | ||
18 | rowsPerPage = this.rowsPerPageOptions[0] | ||
19 | sort: SortMeta = { field: 'createdAt', order: -1 } | 17 | sort: SortMeta = { field: 'createdAt', order: -1 } |
20 | pagination: RestPagination = { count: this.rowsPerPage, start: 0 } | 18 | pagination: RestPagination = { count: this.rowsPerPage, start: 0 } |
21 | 19 | ||
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.ts b/client/src/app/+admin/follows/following-list/following-list.component.ts index e1b1f8aeb..6ddbf02d6 100644 --- a/client/src/app/+admin/follows/following-list/following-list.component.ts +++ b/client/src/app/+admin/follows/following-list/following-list.component.ts | |||
@@ -18,8 +18,6 @@ export class FollowingListComponent extends RestTable implements OnInit { | |||
18 | 18 | ||
19 | following: ActorFollow[] = [] | 19 | following: ActorFollow[] = [] |
20 | totalRecords = 0 | 20 | totalRecords = 0 |
21 | rowsPerPageOptions = [ 20, 50, 100 ] | ||
22 | rowsPerPage = this.rowsPerPageOptions[0] | ||
23 | sort: SortMeta = { field: 'createdAt', order: -1 } | 21 | sort: SortMeta = { field: 'createdAt', order: -1 } |
24 | pagination: RestPagination = { count: this.rowsPerPage, start: 0 } | 22 | pagination: RestPagination = { count: this.rowsPerPage, start: 0 } |
25 | 23 | ||
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts index f91800175..267a1f58e 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts | |||
@@ -20,7 +20,6 @@ export class VideoRedundanciesListComponent extends RestTable implements OnInit | |||
20 | 20 | ||
21 | videoRedundancies: VideoRedundancy[] = [] | 21 | videoRedundancies: VideoRedundancy[] = [] |
22 | totalRecords = 0 | 22 | totalRecords = 0 |
23 | rowsPerPage = 10 | ||
24 | 23 | ||
25 | sort: SortMeta = { field: 'name', order: 1 } | 24 | sort: SortMeta = { field: 'name', order: 1 } |
26 | pagination: RestPagination = { count: this.rowsPerPage, start: 0 } | 25 | pagination: RestPagination = { count: this.rowsPerPage, start: 0 } |