UI: Fix for datasources component validation in basic mode
This commit is contained in:
parent
fed3ec95ec
commit
bcf23f3f96
@ -82,8 +82,6 @@ export class FlotBasicConfigComponent extends BasicWidgetConfigComponent {
|
||||
legendConfig: [configData.config.settings?.legendConfig, []],
|
||||
actions: [configData.config.actions || {}, []]
|
||||
});
|
||||
this.flotWidgetConfigForm.get('series').valueChanges
|
||||
.subscribe(() => this.flotWidgetConfigForm.get('datasources').updateValueAndValidity());
|
||||
}
|
||||
|
||||
protected prepareOutputConfig(config: any): WidgetConfigComponentData {
|
||||
|
||||
@ -243,7 +243,7 @@ export class DatasourcesComponent implements ControlValueAccessor, OnInit, Valid
|
||||
}
|
||||
};
|
||||
}
|
||||
if (this.hasAdditionalLatestDataKeys) {
|
||||
if (this.hasAdditionalLatestDataKeys && !this.basicMode) {
|
||||
let valid = datasources.filter(datasource => datasource?.dataKeys?.length).length > 0;
|
||||
if (!valid) {
|
||||
this.timeseriesKeyError = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user