diff options
Diffstat (limited to 'client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts')
-rw-r--r-- | client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts index 8781c16f5..32d3b0093 100644 --- a/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts +++ b/client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts | |||
@@ -8,13 +8,14 @@ import { ConfirmService, MarkdownService, Notifier, RestPagination, RestTable } | |||
8 | import { Account, Actor, DropdownAction, Video, VideoService } from '@app/shared/shared-main' | 8 | import { Account, Actor, DropdownAction, Video, VideoService } from '@app/shared/shared-main' |
9 | import { AbuseService, BlocklistService, VideoBlockService } from '@app/shared/shared-moderation' | 9 | import { AbuseService, BlocklistService, VideoBlockService } from '@app/shared/shared-moderation' |
10 | import { VideoCommentService } from '@app/shared/shared-video-comment' | 10 | import { VideoCommentService } from '@app/shared/shared-video-comment' |
11 | import { logger } from '@root-helpers/logger' | ||
11 | import { AbuseState, AdminAbuse } from '@shared/models' | 12 | import { AbuseState, AdminAbuse } from '@shared/models' |
12 | import { AdvancedInputFilter } from '../shared-forms' | 13 | import { AdvancedInputFilter } from '../shared-forms' |
13 | import { AbuseMessageModalComponent } from './abuse-message-modal.component' | 14 | import { AbuseMessageModalComponent } from './abuse-message-modal.component' |
14 | import { ModerationCommentModalComponent } from './moderation-comment-modal.component' | 15 | import { ModerationCommentModalComponent } from './moderation-comment-modal.component' |
15 | import { ProcessedAbuse } from './processed-abuse.model' | 16 | import { ProcessedAbuse } from './processed-abuse.model' |
16 | 17 | ||
17 | const logger = debug('peertube:moderation:AbuseListTableComponent') | 18 | const debugLogger = debug('peertube:moderation:AbuseListTableComponent') |
18 | 19 | ||
19 | @Component({ | 20 | @Component({ |
20 | selector: 'my-abuse-list-table', | 21 | selector: 'my-abuse-list-table', |
@@ -158,7 +159,7 @@ export class AbuseListTableComponent extends RestTable implements OnInit { | |||
158 | const abuse = this.abuses.find(a => a.id === event.abuseId) | 159 | const abuse = this.abuses.find(a => a.id === event.abuseId) |
159 | 160 | ||
160 | if (!abuse) { | 161 | if (!abuse) { |
161 | console.error('Cannot find abuse %d.', event.abuseId) | 162 | logger.error(`Cannot find abuse ${event.abuseId}`) |
162 | return | 163 | return |
163 | } | 164 | } |
164 | 165 | ||
@@ -177,7 +178,7 @@ export class AbuseListTableComponent extends RestTable implements OnInit { | |||
177 | } | 178 | } |
178 | 179 | ||
179 | protected reloadData () { | 180 | protected reloadData () { |
180 | logger('Loading data.') | 181 | debugLogger('Loading data.') |
181 | 182 | ||
182 | const options = { | 183 | const options = { |
183 | pagination: this.pagination, | 184 | pagination: this.pagination, |