1 import { Component, OnInit } from '@angular/core'
2 import { ServerService } from '@app/core'
3 import { MarkdownService } from '@app/videos/shared'
4 import { NotificationsService } from 'angular2-notifications'
5 import { I18n } from '@ngx-translate/i18n-polyfill'
9 templateUrl: './about.component.html',
10 styleUrls: [ './about.component.scss' ]
13 export class AboutComponent implements OnInit {
19 private notificationsService: NotificationsService,
20 private serverService: ServerService,
21 private markdownService: MarkdownService,
26 return this.serverService.getConfig().instance.name
29 get userVideoQuota () {
30 return this.serverService.getConfig().user.videoQuota
33 get isSignupAllowed () {
34 return this.serverService.getConfig().signup.allowed
38 this.serverService.getAbout()
41 this.shortDescription = res.instance.shortDescription
42 this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description)
43 this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
46 err => this.notificationsService.error(this.i18n('Error getting about from server'), err)