UI: Fix widget config validation in basic mode
This commit is contained in:
parent
d30ed1243c
commit
1aa2877634
@ -869,13 +869,14 @@ export class WidgetConfigComponent extends PageComponent implements OnInit, OnDe
|
|||||||
}
|
}
|
||||||
|
|
||||||
public validate(c: UntypedFormControl) {
|
public validate(c: UntypedFormControl) {
|
||||||
if (this.basicModeComponent &&
|
if (this.basicModeComponent) {
|
||||||
!this.basicModeComponent.validateConfig()) {
|
if (!this.basicModeComponent.validateConfig()) {
|
||||||
return {
|
return {
|
||||||
basicWidgetConfig: {
|
basicWidgetConfig: {
|
||||||
valid: false
|
valid: false
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
}
|
||||||
} else if (!this.dataSettings.valid) {
|
} else if (!this.dataSettings.valid) {
|
||||||
return {
|
return {
|
||||||
dataSettings: {
|
dataSettings: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user