diff options
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/users/user-edit/user-edit.ts | 12 |
1 files changed, 10 insertions, 2 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 18ca5805f..ae208e624 100644 --- a/client/src/app/+admin/users/user-edit/user-edit.ts +++ b/client/src/app/+admin/users/user-edit/user-edit.ts | |||
@@ -94,10 +94,18 @@ export abstract class UserEdit extends FormReactive implements OnInit { | |||
94 | protected buildQuotaOptions () { | 94 | protected buildQuotaOptions () { |
95 | // These are used by a HTML select, so convert key into strings | 95 | // These are used by a HTML select, so convert key into strings |
96 | this.videoQuotaOptions = this.configService | 96 | this.videoQuotaOptions = this.configService |
97 | .videoQuotaOptions.map(q => ({ value: q.value?.toString(), label: q.label, disabled: q.disabled })) | 97 | .videoQuotaOptions.map(q => ({ |
98 | value: q.value?.toString(), | ||
99 | label: q.label, | ||
100 | disabled: q.disabled | ||
101 | })) | ||
98 | 102 | ||
99 | this.videoQuotaDailyOptions = this.configService | 103 | this.videoQuotaDailyOptions = this.configService |
100 | .videoQuotaDailyOptions.map(q => ({ value: q.value?.toString(), label: q.label, disabled: q.disabled })) | 104 | .videoQuotaDailyOptions.map(q => ({ |
105 | value: q.value?.toString(), | ||
106 | label: q.label, | ||
107 | disabled: q.disabled | ||
108 | })) | ||
101 | 109 | ||
102 | console.log( | 110 | console.log( |
103 | this.videoQuotaOptions, | 111 | this.videoQuotaOptions, |