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 {
17 private notificationsService: NotificationsService,
18 private serverService: ServerService,
19 private markdownService: MarkdownService
23 return this.serverService.getConfig().instance.name
26 get userVideoQuota () {
27 return this.serverService.getConfig().user.videoQuota
30 get isSignupAllowed () {
31 return this.serverService.getConfig().signup.allowed
35 this.serverService.getAbout()
38 this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description)
39 this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
42 err => this.notificationsService.error('Error getting about from server', err)