X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fabout%2Fabout.component.ts;h=3948d5c46bbb022a40dba6b74c38c14a76609163;hb=45c0fb35eb3904cbea91ff1ee450d308bbb4ebdb;hp=6a2e59be18476b7762ddadffbdb30859e27cafff;hpb=36f9424ff192b0584a433bc196bced6fcf265808;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/about/about.component.ts b/client/src/app/about/about.component.ts index 6a2e59be1..3948d5c46 100644 --- a/client/src/app/about/about.component.ts +++ b/client/src/app/about/about.component.ts @@ -10,6 +10,7 @@ import { NotificationsService } from 'angular2-notifications' }) export class AboutComponent implements OnInit { + shortDescription = '' descriptionHTML = '' termsHTML = '' @@ -23,15 +24,24 @@ export class AboutComponent implements OnInit { return this.serverService.getConfig().instance.name } + get userVideoQuota () { + return this.serverService.getConfig().user.videoQuota + } + + get isSignupAllowed () { + return this.serverService.getConfig().signup.allowed + } + ngOnInit () { this.serverService.getAbout() .subscribe( res => { - this.descriptionHTML = this.markdownService.markdownToHTML(res.instance.description) - this.termsHTML = this.markdownService.markdownToHTML(res.instance.terms) + this.shortDescription = res.instance.shortDescription + this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description) + this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms) }, - err => this.notificationsService.error('Error', err) + err => this.notificationsService.error('Error getting about from server', err) ) }