1 import { Component, OnInit } from '@angular/core'
2 import { Notifier, ServerService } from '@app/core'
3 import { MarkdownService } from '@app/videos/shared'
4 import { I18n } from '@ngx-translate/i18n-polyfill'
7 selector: 'my-about-instance',
8 templateUrl: './about-instance.component.html',
9 styleUrls: [ './about-instance.component.scss' ]
11 export class AboutInstanceComponent implements OnInit {
17 private notifier: Notifier,
18 private serverService: ServerService,
19 private markdownService: MarkdownService,
24 return this.serverService.getConfig().instance.name
27 get userVideoQuota () {
28 return this.serverService.getConfig().user.videoQuota
31 get isSignupAllowed () {
32 return this.serverService.getConfig().signup.allowed
36 this.serverService.getAbout()
39 this.shortDescription = res.instance.shortDescription
40 this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description)
41 this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
44 () => this.notifier.error(this.i18n('Cannot get about information from server'))