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'
8 templateUrl: './about.component.html',
9 styleUrls: [ './about.component.scss' ]
12 export class AboutComponent implements OnInit {
18 private notificationsService: NotificationsService,
19 private serverService: ServerService,
20 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 err => this.notificationsService.error('Error getting about from server', err)