diff options
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/users/user-edit/user-edit.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/+admin/users/user-edit/user-edit.ts b/client/src/app/+admin/users/user-edit/user-edit.ts index 0b3511e8e..021b1feb4 100644 --- a/client/src/app/+admin/users/user-edit/user-edit.ts +++ b/client/src/app/+admin/users/user-edit/user-edit.ts | |||
@@ -22,7 +22,9 @@ export abstract class UserEdit extends FormReactive { | |||
22 | } | 22 | } |
23 | 23 | ||
24 | computeQuotaWithTranscoding () { | 24 | computeQuotaWithTranscoding () { |
25 | const resolutions = this.serverService.getConfig().transcoding.enabledResolutions | 25 | const transcodingConfig = this.serverService.getConfig().transcoding |
26 | |||
27 | const resolutions = transcodingConfig.enabledResolutions | ||
26 | const higherResolution = VideoResolution.H_1080P | 28 | const higherResolution = VideoResolution.H_1080P |
27 | let multiplier = 0 | 29 | let multiplier = 0 |
28 | 30 | ||
@@ -30,6 +32,8 @@ export abstract class UserEdit extends FormReactive { | |||
30 | multiplier += resolution / higherResolution | 32 | multiplier += resolution / higherResolution |
31 | } | 33 | } |
32 | 34 | ||
35 | if (transcodingConfig.hls.enabled) multiplier *= 2 | ||
36 | |||
33 | return multiplier * parseInt(this.form.value['videoQuota'], 10) | 37 | return multiplier * parseInt(this.form.value['videoQuota'], 10) |
34 | } | 38 | } |
35 | 39 | ||