aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core
diff options
context:
space:
mode:
authorRigel Kent <par@rigelk.eu>2018-03-27 13:42:57 +0200
committerChocobozzz <me@florianbigard.com>2018-03-27 13:42:57 +0200
commit1869c87535d31a73a26c5d07718cdf94300cc332 (patch)
tree0fa1823002f7a1e76e8ee138da6f5e2088f65981 /client/src/app/core
parentfc27b17c6b4ddaef2db8e7086d3f74c081026bd9 (diff)
downloadPeerTube-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.ts4
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'
5import { ReplaySubject } from 'rxjs/ReplaySubject' 5import { ReplaySubject } from 'rxjs/ReplaySubject'
6import { ServerConfig } from '../../../../../shared' 6import { ServerConfig } from '../../../../../shared'
7import { About } from '../../../../../shared/models/server/about.model' 7import { About } from '../../../../../shared/models/server/about.model'
8import { ServerStats } from '../../../../../shared/models/server/server-stats.model'
8import { environment } from '../../../environments/environment' 9import { 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 }> = []