File tree 4 files changed +8
-4
lines changed
ui/src/app/core/components/schema-form
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
10
10
- updates to the ` es.json ` language file (#2376 ) (@kyrokode )
11
11
- updates to the ` id.json ` language file (#2377 ) (@dwaan )
12
12
- updates to the ` ru.json ` language file (#2384 ) (@SeregaTarasov )
13
+ - fixed issue with UI config incorrectly reporting as invalid
13
14
14
15
### Other Changes
15
16
Original file line number Diff line number Diff line change 452
452
"type" : " string" ,
453
453
"default" : " " ,
454
454
"description" : " The method used to read the Homebridge log file." ,
455
- "required" : true ,
456
455
"oneOf" : [
457
456
{
458
457
"title" : " Default" ,
485
484
"type" : " string" ,
486
485
"description" : " Enter the full file path to your log file." ,
487
486
"placeholder" : " /var/log/homebridge.log" ,
488
- "required" : true ,
489
487
"condition" : {
490
488
"functionBody" : " return (model.log && model.log.method==='file')"
491
489
}
495
493
"type" : " string" ,
496
494
"description" : " Enter the systemd service name. Defaults to 'homebridge'." ,
497
495
"placeholder" : " homebridge" ,
498
- "required" : true ,
499
496
"condition" : {
500
497
"functionBody" : " return (model.log && model.log.method==='systemd')"
501
498
}
505
502
"description" : " This command should stream the logs to stdout." ,
506
503
"type" : " string" ,
507
504
"placeholder" : " journalctl -f -n 100 -u homebridge" ,
508
- "required" : true ,
509
505
"condition" : {
510
506
"functionBody" : " return (model.log && model.log.method==='custom')"
511
507
}
Original file line number Diff line number Diff line change 11
11
(onChanges) ="onChanges($event) "
12
12
(isValid) ="validChange($event) "
13
13
[language] ="language "
14
+ (validationErrors) ="validationErrors($event) "
14
15
class ="ng-bs5-validate "
15
16
>
16
17
</ json-schema-form >
Original file line number Diff line number Diff line change @@ -53,4 +53,10 @@ export class SchemaFormComponent implements OnInit {
53
53
validChange ( data : any ) {
54
54
this . isValid . emit ( data )
55
55
}
56
+
57
+ validationErrors ( errors : any [ ] | null ) {
58
+ if ( errors ) {
59
+ errors . forEach ( error => console . error ( error . instancePath , error . message ) )
60
+ }
61
+ }
56
62
}
You can’t perform that action at this time.
0 commit comments