diff options
author | Chocobozzz <me@florianbigard.com> | 2019-01-10 11:51:25 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-01-10 11:51:25 +0100 |
commit | 26a008fe8d71b1bba818dd5f4fae760e0f7fc47c (patch) | |
tree | 78d844a4bebe9d711901f1f11f845fc15a39f352 /client/src/app/+about/about-instance | |
parent | d3e56c0c4b307c99e83fbafb7f2c5884cbc20055 (diff) | |
download | PeerTube-26a008fe8d71b1bba818dd5f4fae760e0f7fc47c.tar.gz PeerTube-26a008fe8d71b1bba818dd5f4fae760e0f7fc47c.tar.zst PeerTube-26a008fe8d71b1bba818dd5f4fae760e0f7fc47c.zip |
Update translations
Diffstat (limited to 'client/src/app/+about/about-instance')
-rw-r--r-- | client/src/app/+about/about-instance/contact-admin-modal.component.ts | 7 |
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 @@ | |||
1 | import { Component, OnInit, ViewChild } from '@angular/core' | 1 | import { Component, OnInit, ViewChild } from '@angular/core' |
2 | import { Notifier } from '@app/core' | 2 | import { Notifier, ServerService } from '@app/core' |
3 | import { I18n } from '@ngx-translate/i18n-polyfill' | 3 | import { I18n } from '@ngx-translate/i18n-polyfill' |
4 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | 4 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
5 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 5 | import { 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, |