aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+about
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+about')
-rw-r--r--client/src/app/+about/about-instance/contact-admin-modal.component.ts17
1 files changed, 11 insertions, 6 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 215e281bb..11e442f6b 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
@@ -1,6 +1,12 @@
1import { Component, OnInit, ViewChild } from '@angular/core' 1import { Component, OnInit, ViewChild } from '@angular/core'
2import { Notifier, ServerService } from '@app/core' 2import { Notifier, ServerService } from '@app/core'
3import { FormReactive, FormValidatorService, InstanceValidatorsService } from '@app/shared/shared-forms' 3import {
4 BODY_VALIDATOR,
5 FROM_EMAIL_VALIDATOR,
6 FROM_NAME_VALIDATOR,
7 SUBJECT_VALIDATOR
8} from '@app/shared/form-validators/instance-validators'
9import { FormReactive, FormValidatorService } from '@app/shared/shared-forms'
4import { InstanceService } from '@app/shared/shared-instance' 10import { InstanceService } from '@app/shared/shared-instance'
5import { NgbModal } from '@ng-bootstrap/ng-bootstrap' 11import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
6import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref' 12import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref'
@@ -22,7 +28,6 @@ export class ContactAdminModalComponent extends FormReactive implements OnInit {
22 constructor ( 28 constructor (
23 protected formValidatorService: FormValidatorService, 29 protected formValidatorService: FormValidatorService,
24 private modalService: NgbModal, 30 private modalService: NgbModal,
25 private instanceValidatorsService: InstanceValidatorsService,
26 private instanceService: InstanceService, 31 private instanceService: InstanceService,
27 private serverService: ServerService, 32 private serverService: ServerService,
28 private notifier: Notifier 33 private notifier: Notifier
@@ -40,10 +45,10 @@ export class ContactAdminModalComponent extends FormReactive implements OnInit {
40 .subscribe(config => this.serverConfig = config) 45 .subscribe(config => this.serverConfig = config)
41 46
42 this.buildForm({ 47 this.buildForm({
43 fromName: this.instanceValidatorsService.FROM_NAME, 48 fromName: FROM_NAME_VALIDATOR,
44 fromEmail: this.instanceValidatorsService.FROM_EMAIL, 49 fromEmail: FROM_EMAIL_VALIDATOR,
45 subject: this.instanceValidatorsService.SUBJECT, 50 subject: SUBJECT_VALIDATOR,
46 body: this.instanceValidatorsService.BODY 51 body: BODY_VALIDATOR
47 }) 52 })
48 } 53 }
49 54