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.ts7
1 files changed, 6 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 2f707bd53..7d79c2215 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,5 +1,5 @@
1import { Component, OnInit, ViewChild } from '@angular/core' 1import { Component, OnInit, ViewChild } from '@angular/core'
2import { Notifier } from '@app/core' 2import { Notifier, ServerService } from '@app/core'
3import { I18n } from '@ngx-translate/i18n-polyfill' 3import { I18n } from '@ngx-translate/i18n-polyfill'
4import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' 4import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
5import { NgbModal } from '@ng-bootstrap/ng-bootstrap' 5import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
@@ -24,12 +24,17 @@ export class ContactAdminModalComponent extends FormReactive implements OnInit {
24 private modalService: NgbModal, 24 private modalService: NgbModal,
25 private instanceValidatorsService: InstanceValidatorsService, 25 private instanceValidatorsService: InstanceValidatorsService,
26 private instanceService: InstanceService, 26 private instanceService: InstanceService,
27 private serverService: ServerService,
27 private notifier: Notifier, 28 private notifier: Notifier,
28 private i18n: I18n 29 private i18n: I18n
29 ) { 30 ) {
30 super() 31 super()
31 } 32 }
32 33
34 get instanceName () {
35 return this.serverService.getConfig().instance.name
36 }
37
33 ngOnInit () { 38 ngOnInit () {
34 this.buildForm({ 39 this.buildForm({
35 fromName: this.instanceValidatorsService.FROM_NAME, 40 fromName: this.instanceValidatorsService.FROM_NAME,