diff options
author | Rigel Kent <par@rigelk.eu> | 2018-03-27 13:42:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-27 13:42:57 +0200 |
commit | 1869c87535d31a73a26c5d07718cdf94300cc332 (patch) | |
tree | 0fa1823002f7a1e76e8ee138da6f5e2088f65981 /client/src/app/core | |
parent | fc27b17c6b4ddaef2db8e7086d3f74c081026bd9 (diff) | |
download | PeerTube-1869c87535d31a73a26c5d07718cdf94300cc332.tar.gz PeerTube-1869c87535d31a73a26c5d07718cdf94300cc332.tar.zst PeerTube-1869c87535d31a73a26c5d07718cdf94300cc332.zip |
show quota in stats, display quota on the about page, fixes #405 (#421)
move videoQuota under a user object, use byte PipeTransform
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/server/server.service.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts index 206ec7bcd..987d64d2a 100644 --- a/client/src/app/core/server/server.service.ts +++ b/client/src/app/core/server/server.service.ts | |||
@@ -5,6 +5,7 @@ import 'rxjs/add/operator/do' | |||
5 | import { ReplaySubject } from 'rxjs/ReplaySubject' | 5 | import { ReplaySubject } from 'rxjs/ReplaySubject' |
6 | import { ServerConfig } from '../../../../../shared' | 6 | import { ServerConfig } from '../../../../../shared' |
7 | import { About } from '../../../../../shared/models/server/about.model' | 7 | import { About } from '../../../../../shared/models/server/about.model' |
8 | import { ServerStats } from '../../../../../shared/models/server/server-stats.model' | ||
8 | import { environment } from '../../../environments/environment' | 9 | import { environment } from '../../../environments/environment' |
9 | 10 | ||
10 | @Injectable() | 11 | @Injectable() |
@@ -51,6 +52,9 @@ export class ServerService { | |||
51 | file: { | 52 | file: { |
52 | extensions: [] | 53 | extensions: [] |
53 | } | 54 | } |
55 | }, | ||
56 | user: { | ||
57 | videoQuota: -1 | ||
54 | } | 58 | } |
55 | } | 59 | } |
56 | private videoCategories: Array<{ id: number, label: string }> = [] | 60 | private videoCategories: Array<{ id: number, label: string }> = [] |