diff options
Diffstat (limited to 'client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts')
-rw-r--r-- | client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts b/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts index 431729ef2..4efadc386 100644 --- a/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts +++ b/client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts | |||
@@ -9,7 +9,7 @@ import { BatchDomainsModalComponent } from '@app/+admin/config/shared/batch-doma | |||
9 | 9 | ||
10 | @Component({ | 10 | @Component({ |
11 | selector: 'my-instance-server-blocklist', | 11 | selector: 'my-instance-server-blocklist', |
12 | styleUrls: [ './instance-server-blocklist.component.scss' ], | 12 | styleUrls: [ '../moderation.component.scss', './instance-server-blocklist.component.scss' ], |
13 | templateUrl: './instance-server-blocklist.component.html' | 13 | templateUrl: './instance-server-blocklist.component.html' |
14 | }) | 14 | }) |
15 | export class InstanceServerBlocklistComponent extends RestTable implements OnInit { | 15 | export class InstanceServerBlocklistComponent extends RestTable implements OnInit { |
@@ -17,7 +17,8 @@ export class InstanceServerBlocklistComponent extends RestTable implements OnIni | |||
17 | 17 | ||
18 | blockedServers: ServerBlock[] = [] | 18 | blockedServers: ServerBlock[] = [] |
19 | totalRecords = 0 | 19 | totalRecords = 0 |
20 | rowsPerPage = 10 | 20 | rowsPerPageOptions = [ 20, 50, 100 ] |
21 | rowsPerPage = this.rowsPerPageOptions[0] | ||
21 | sort: SortMeta = { field: 'createdAt', order: -1 } | 22 | sort: SortMeta = { field: 'createdAt', order: -1 } |
22 | pagination: RestPagination = { count: this.rowsPerPage, start: 0 } | 23 | pagination: RestPagination = { count: this.rowsPerPage, start: 0 } |
23 | 24 | ||
@@ -72,7 +73,11 @@ export class InstanceServerBlocklistComponent extends RestTable implements OnIni | |||
72 | } | 73 | } |
73 | 74 | ||
74 | protected loadData () { | 75 | protected loadData () { |
75 | return this.blocklistService.getInstanceServerBlocklist(this.pagination, this.sort) | 76 | return this.blocklistService.getInstanceServerBlocklist({ |
77 | pagination: this.pagination, | ||
78 | sort: this.sort, | ||
79 | search: this.search | ||
80 | }) | ||
76 | .subscribe( | 81 | .subscribe( |
77 | resultList => { | 82 | resultList => { |
78 | this.blockedServers = resultList.data | 83 | this.blockedServers = resultList.data |