1
0
Fork 0

Fix error display on edit config in admin

This commit is contained in:
Chocobozzz 2018-03-23 11:39:06 +01:00
parent 95540ed23a
commit a465bf5f47
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 15 additions and 3 deletions

View file

@ -57,6 +57,9 @@
<option value="/videos/local">Local videos</option> <option value="/videos/local">Local videos</option>
</select> </select>
</div> </div>
<div *ngIf="formErrors.instanceDefaultClientRoute" class="form-error">
{{ formErrors.instanceDefaultClientRoute }}
</div>
</div> </div>
<div class="inner-form-title">Cache</div> <div class="inner-form-title">Cache</div>
@ -116,6 +119,9 @@
</option> </option>
</select> </select>
</div> </div>
<div *ngIf="formErrors.userVideoQuota" class="form-error">
{{ formErrors.userVideoQuota }}
</div>
</div> </div>
<div class="inner-form-title">Transcoding</div> <div class="inner-form-title">Transcoding</div>
@ -138,6 +144,9 @@
</option> </option>
</select> </select>
</div> </div>
<div *ngIf="formErrors.transcodingThreads" class="form-error">
{{ formErrors.transcodingThreads }}
</div>
</div> </div>
<div class="form-group" *ngFor="let resolution of resolutions"> <div class="form-group" *ngFor="let resolution of resolutions">

View file

@ -21,10 +21,13 @@ function checkMissedConfig () {
const required = [ 'listen.port', const required = [ 'listen.port',
'webserver.https', 'webserver.hostname', 'webserver.port', 'webserver.https', 'webserver.hostname', 'webserver.port',
'database.hostname', 'database.port', 'database.suffix', 'database.username', 'database.password', 'database.hostname', 'database.port', 'database.suffix', 'database.username', 'database.password',
'storage.videos', 'storage.logs', 'storage.thumbnails', 'storage.previews', 'storage.torrents', 'storage.cache', 'log.level', 'redis.hostname', 'redis.port', 'redis.auth',
'smtp.hostname', 'smtp.port', 'smtp.username', 'smtp.password', 'smtp.tls', 'smtp.from_address',
'storage.avatars', 'storage.videos', 'storage.logs', 'storage.previews', 'storage.thumbnails', 'storage.torrents', 'storage.cache',
'log.level',
'user.video_quota',
'cache.previews.size', 'admin.email', 'signup.enabled', 'signup.limit', 'transcoding.enabled', 'transcoding.threads', 'cache.previews.size', 'admin.email', 'signup.enabled', 'signup.limit', 'transcoding.enabled', 'transcoding.threads',
'user.video_quota', 'smtp.hostname', 'smtp.port', 'smtp.username', 'smtp.password', 'smtp.tls', 'smtp.from_address', 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route'
'instance.name', 'instance.description', 'instance.terms'
] ]
const miss: string[] = [] const miss: string[] = []