diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-04 13:31:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-04 15:45:44 +0200 |
commit | 2989628b7913383b39ac34c7db8666a21f8e5037 (patch) | |
tree | ac7759177c04e524e7845143fd685aefb49e810e /client/src/app/+about/about-instance/contact-admin-modal.component.ts | |
parent | 8e08d415f9473b6b72fef698729453e726da16e7 (diff) | |
download | PeerTube-2989628b7913383b39ac34c7db8666a21f8e5037.tar.gz PeerTube-2989628b7913383b39ac34c7db8666a21f8e5037.tar.zst PeerTube-2989628b7913383b39ac34c7db8666a21f8e5037.zip |
Use HTML config when possible
Diffstat (limited to 'client/src/app/+about/about-instance/contact-admin-modal.component.ts')
-rw-r--r-- | client/src/app/+about/about-instance/contact-admin-modal.component.ts | 8 |
1 files changed, 3 insertions, 5 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 ac2a6c980..adbe7fe9a 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 | |||
@@ -11,7 +11,7 @@ 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 { HttpStatusCode } from '@shared/core-utils/miscs/http-error-codes' |
14 | import { ServerConfig } from '@shared/models' | 14 | import { HTMLServerConfig } from '@shared/models' |
15 | 15 | ||
16 | @Component({ | 16 | @Component({ |
17 | selector: 'my-contact-admin-modal', | 17 | selector: 'my-contact-admin-modal', |
@@ -24,7 +24,7 @@ export class ContactAdminModalComponent extends FormReactive implements OnInit { | |||
24 | error: string | 24 | error: string |
25 | 25 | ||
26 | private openedModal: NgbModalRef | 26 | private openedModal: NgbModalRef |
27 | private serverConfig: ServerConfig | 27 | private serverConfig: HTMLServerConfig |
28 | 28 | ||
29 | constructor ( | 29 | constructor ( |
30 | protected formValidatorService: FormValidatorService, | 30 | protected formValidatorService: FormValidatorService, |
@@ -41,9 +41,7 @@ export class ContactAdminModalComponent extends FormReactive implements OnInit { | |||
41 | } | 41 | } |
42 | 42 | ||
43 | ngOnInit () { | 43 | ngOnInit () { |
44 | this.serverConfig = this.serverService.getTmpConfig() | 44 | this.serverConfig = this.serverService.getHTMLConfig() |
45 | this.serverService.getConfig() | ||
46 | .subscribe(config => this.serverConfig = config) | ||
47 | 45 | ||
48 | this.buildForm({ | 46 | this.buildForm({ |
49 | fromName: FROM_NAME_VALIDATOR, | 47 | fromName: FROM_NAME_VALIDATOR, |