diff options
Diffstat (limited to 'client/src/app/shared/shared-abuse-list/abuse-message-modal.component.ts')
-rw-r--r-- | client/src/app/shared/shared-abuse-list/abuse-message-modal.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.ts b/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.ts index 6c8dc6d35..d24a5d58d 100644 --- a/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.ts +++ b/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.ts | |||
@@ -3,6 +3,7 @@ import { AuthService, HtmlRendererService, Notifier } from '@app/core' | |||
3 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | 3 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' |
4 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 4 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
5 | import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref' | 5 | import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref' |
6 | import { logger } from '@root-helpers/logger' | ||
6 | import { AbuseMessage, UserAbuse } from '@shared/models' | 7 | import { AbuseMessage, UserAbuse } from '@shared/models' |
7 | import { ABUSE_MESSAGE_VALIDATOR } from '../form-validators/abuse-validators' | 8 | import { ABUSE_MESSAGE_VALIDATOR } from '../form-validators/abuse-validators' |
8 | import { AbuseService } from '../shared-moderation' | 9 | import { AbuseService } from '../shared-moderation' |
@@ -72,7 +73,7 @@ export class AbuseMessageModalComponent extends FormReactive implements OnInit { | |||
72 | 73 | ||
73 | error: err => { | 74 | error: err => { |
74 | this.sendingMessage = false | 75 | this.sendingMessage = false |
75 | console.error(err) | 76 | logger.error(err) |
76 | this.notifier.error('Sorry but you cannot send this message. Please retry later') | 77 | this.notifier.error('Sorry but you cannot send this message. Please retry later') |
77 | } | 78 | } |
78 | }) | 79 | }) |