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
27 this.serverService.getAbout()
30 this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description)
31 this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
34 err => this.notificationsService.error('Error', err)