aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/config/shared/config.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+admin/config/shared/config.service.ts')
-rw-r--r--client/src/app/+admin/config/shared/config.service.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/client/src/app/+admin/config/shared/config.service.ts b/client/src/app/+admin/config/shared/config.service.ts
index 28a3d67d6..874b8094d 100644
--- a/client/src/app/+admin/config/shared/config.service.ts
+++ b/client/src/app/+admin/config/shared/config.service.ts
@@ -10,8 +10,8 @@ import { I18n } from '@ngx-translate/i18n-polyfill'
10export class ConfigService { 10export class ConfigService {
11 private static BASE_APPLICATION_URL = environment.apiUrl + '/api/v1/config' 11 private static BASE_APPLICATION_URL = environment.apiUrl + '/api/v1/config'
12 12
13 videoQuotaOptions: { value: number, label: string }[] = [] 13 videoQuotaOptions: { value: number, label: string, disabled?: boolean }[] = []
14 videoQuotaDailyOptions: { value: number, label: string }[] = [] 14 videoQuotaDailyOptions: { value: number, label: string, disabled?: boolean }[] = []
15 15
16 constructor ( 16 constructor (
17 private authHttp: HttpClient, 17 private authHttp: HttpClient,
@@ -19,8 +19,10 @@ export class ConfigService {
19 private i18n: I18n 19 private i18n: I18n
20 ) { 20 ) {
21 this.videoQuotaOptions = [ 21 this.videoQuotaOptions = [
22 { value: undefined, label: 'Default quota', disabled: true },
22 { value: -1, label: this.i18n('Unlimited') }, 23 { value: -1, label: this.i18n('Unlimited') },
23 { value: 0, label: '0' }, 24 { value: undefined, label: '─────', disabled: true },
25 { value: 0, label: this.i18n('None - no upload possible') },
24 { value: 100 * 1024 * 1024, label: this.i18n('100MB') }, 26 { value: 100 * 1024 * 1024, label: this.i18n('100MB') },
25 { value: 500 * 1024 * 1024, label: this.i18n('500MB') }, 27 { value: 500 * 1024 * 1024, label: this.i18n('500MB') },
26 { value: 1024 * 1024 * 1024, label: this.i18n('1GB') }, 28 { value: 1024 * 1024 * 1024, label: this.i18n('1GB') },
@@ -30,8 +32,10 @@ export class ConfigService {
30 ] 32 ]
31 33
32 this.videoQuotaDailyOptions = [ 34 this.videoQuotaDailyOptions = [
35 { value: undefined, label: 'Default daily upload limit', disabled: true },
33 { value: -1, label: this.i18n('Unlimited') }, 36 { value: -1, label: this.i18n('Unlimited') },
34 { value: 0, label: '0' }, 37 { value: undefined, label: '─────', disabled: true },
38 { value: 0, label: this.i18n('None - no upload possible') },
35 { value: 10 * 1024 * 1024, label: this.i18n('10MB') }, 39 { value: 10 * 1024 * 1024, label: this.i18n('10MB') },
36 { value: 50 * 1024 * 1024, label: this.i18n('50MB') }, 40 { value: 50 * 1024 * 1024, label: this.i18n('50MB') },
37 { value: 100 * 1024 * 1024, label: this.i18n('100MB') }, 41 { value: 100 * 1024 * 1024, label: this.i18n('100MB') },