aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/config/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-10 11:06:32 +0100
committerChocobozzz <me@florianbigard.com>2021-02-10 11:36:40 +0100
commit5f46d28ccac4a20fcbb12c96a047a84a08e485ae (patch)
tree6529920195176736d187b93bcac8f3ad6920853d /client/src/app/+admin/config/shared
parent53e4e201797aa1b581209ffd775bf05197efa78f (diff)
downloadPeerTube-5f46d28ccac4a20fcbb12c96a047a84a08e485ae.tar.gz
PeerTube-5f46d28ccac4a20fcbb12c96a047a84a08e485ae.tar.zst
PeerTube-5f46d28ccac4a20fcbb12c96a047a84a08e485ae.zip
Split admin conf page
Diffstat (limited to 'client/src/app/+admin/config/shared')
-rw-r--r--client/src/app/+admin/config/shared/config.service.ts14
1 files changed, 13 insertions, 1 deletions
diff --git a/client/src/app/+admin/config/shared/config.service.ts b/client/src/app/+admin/config/shared/config.service.ts
index d29b752f7..80f495b41 100644
--- a/client/src/app/+admin/config/shared/config.service.ts
+++ b/client/src/app/+admin/config/shared/config.service.ts
@@ -12,11 +12,12 @@ export class ConfigService {
12 12
13 videoQuotaOptions: SelectOptionsItem[] = [] 13 videoQuotaOptions: SelectOptionsItem[] = []
14 videoQuotaDailyOptions: SelectOptionsItem[] = [] 14 videoQuotaDailyOptions: SelectOptionsItem[] = []
15 transcodingThreadOptions: SelectOptionsItem[] = []
15 16
16 constructor ( 17 constructor (
17 private authHttp: HttpClient, 18 private authHttp: HttpClient,
18 private restExtractor: RestExtractor 19 private restExtractor: RestExtractor
19 ) { 20 ) {
20 this.videoQuotaOptions = [ 21 this.videoQuotaOptions = [
21 { id: -1, label: $localize`Unlimited` }, 22 { id: -1, label: $localize`Unlimited` },
22 { id: 0, label: $localize`None - no upload possible` }, 23 { id: 0, label: $localize`None - no upload possible` },
@@ -44,6 +45,17 @@ export class ConfigService {
44 { id: 20 * 1024 * 1024 * 1024, label: $localize`20GB` }, 45 { id: 20 * 1024 * 1024 * 1024, label: $localize`20GB` },
45 { id: 50 * 1024 * 1024 * 1024, label: $localize`50GB` } 46 { id: 50 * 1024 * 1024 * 1024, label: $localize`50GB` }
46 ] 47 ]
48
49 this.transcodingThreadOptions = [
50 { id: 0, label: $localize`Auto (via ffmpeg)` },
51 { id: 1, label: '1' },
52 { id: 2, label: '2' },
53 { id: 4, label: '4' },
54 { id: 8, label: '8' },
55 { id: 12, label: '12' },
56 { id: 16, label: '16' },
57 { id: 32, label: '32' }
58 ]
47 } 59 }
48 60
49 getCustomConfig () { 61 getCustomConfig () {