Fix error display on edit config in admin
This commit is contained in:
parent
95540ed23a
commit
a465bf5f47
2 changed files with 15 additions and 3 deletions
|
@ -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">
|
||||||
|
|
|
@ -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[] = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue