diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-17 11:47:04 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-17 15:12:55 +0200 |
commit | 7ed1edbbe4ffbef28093e4f5630751cb652814e4 (patch) | |
tree | 831862165dbfce593447a517c2294a7a4c28d840 /client/src/app/+about | |
parent | 1a95f0b9627f8016767a5a386620cbc3335d5f93 (diff) | |
download | PeerTube-7ed1edbbe4ffbef28093e4f5630751cb652814e4.tar.gz PeerTube-7ed1edbbe4ffbef28093e4f5630751cb652814e4.tar.zst PeerTube-7ed1edbbe4ffbef28093e4f5630751cb652814e4.zip |
We don't need services anymore for validators
Diffstat (limited to 'client/src/app/+about')
-rw-r--r-- | client/src/app/+about/about-instance/contact-admin-modal.component.ts | 17 |
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 @@ | |||
1 | import { Component, OnInit, ViewChild } from '@angular/core' | 1 | import { Component, OnInit, ViewChild } from '@angular/core' |
2 | import { Notifier, ServerService } from '@app/core' | 2 | import { Notifier, ServerService } from '@app/core' |
3 | import { FormReactive, FormValidatorService, InstanceValidatorsService } from '@app/shared/shared-forms' | 3 | import { |
4 | BODY_VALIDATOR, | ||
5 | FROM_EMAIL_VALIDATOR, | ||
6 | FROM_NAME_VALIDATOR, | ||
7 | SUBJECT_VALIDATOR | ||
8 | } from '@app/shared/form-validators/instance-validators' | ||
9 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | ||
4 | import { InstanceService } from '@app/shared/shared-instance' | 10 | import { InstanceService } from '@app/shared/shared-instance' |
5 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 11 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
6 | import { NgbModalRef } from '@ng-bootstrap/ng-bootstrap/modal/modal-ref' | 12 | import { 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 | ||