From 1869c87535d31a73a26c5d07718cdf94300cc332 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 27 Mar 2018 13:42:57 +0200 Subject: show quota in stats, display quota on the about page, fixes #405 (#421) move videoQuota under a user object, use byte PipeTransform --- client/src/app/about/about.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client/src/app/about/about.component.ts') diff --git a/client/src/app/about/about.component.ts b/client/src/app/about/about.component.ts index adad32b26..7edc013e1 100644 --- a/client/src/app/about/about.component.ts +++ b/client/src/app/about/about.component.ts @@ -23,6 +23,10 @@ export class AboutComponent implements OnInit { return this.serverService.getConfig().instance.name } + get userVideoQuota () { + return this.serverService.getConfig().user.videoQuota + } + ngOnInit () { this.serverService.getAbout() .subscribe( @@ -31,7 +35,7 @@ export class AboutComponent implements OnInit { this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms) }, - err => this.notificationsService.error('Error', err) + err => this.notificationsService.error('Error getting about from server', err) ) } -- cgit v1.2.3