diff options
Diffstat (limited to 'client/src/app/+about/about-instance')
-rw-r--r-- | client/src/app/+about/about-instance/contact-admin-modal.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/+about/about-instance/contact-admin-modal.component.ts b/client/src/app/+about/about-instance/contact-admin-modal.component.ts index 11e442f6b..ac2a6c980 100644 --- a/client/src/app/+about/about-instance/contact-admin-modal.component.ts +++ b/client/src/app/+about/about-instance/contact-admin-modal.component.ts | |||
@@ -10,6 +10,7 @@ import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | |||
10 | import { InstanceService } from '@app/shared/shared-instance' | 10 | import { InstanceService } from '@app/shared/shared-instance' |
11 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 11 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
12 | import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref' | 12 | import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref' |
13 | import { HttpStatusCode } from '@shared/core-utils/miscs/http-error-codes' | ||
13 | import { ServerConfig } from '@shared/models' | 14 | import { ServerConfig } from '@shared/models' |
14 | 15 | ||
15 | @Component({ | 16 | @Component({ |
@@ -78,7 +79,7 @@ export class ContactAdminModalComponent extends FormReactive implements OnInit { | |||
78 | }, | 79 | }, |
79 | 80 | ||
80 | err => { | 81 | err => { |
81 | this.error = err.status === 403 | 82 | this.error = err.status === HttpStatusCode.FORBIDDEN_403 |
82 | ? $localize`You already sent this form recently` | 83 | ? $localize`You already sent this form recently` |
83 | : err.message | 84 | : err.message |
84 | } | 85 | } |