|
|
|
@ -324,7 +324,6 @@ export class WidgetConfigComponent extends PageComponent implements OnInit, Cont |
|
|
|
this.datasourceTypes.push(DatasourceType.entityCount); |
|
|
|
} |
|
|
|
} |
|
|
|
this.showLegendFieldset = (this.widgetType === widgetType.timeseries || this.widgetType === widgetType.latest); |
|
|
|
|
|
|
|
this.dataSettings = this.fb.group({}); |
|
|
|
this.targetDeviceSettings = this.fb.group({}); |
|
|
|
@ -389,6 +388,7 @@ export class WidgetConfigComponent extends PageComponent implements OnInit, Cont |
|
|
|
if (this.modelValue) { |
|
|
|
if (this.widgetType !== this.modelValue.widgetType) { |
|
|
|
this.widgetType = this.modelValue.widgetType; |
|
|
|
this.showLegendFieldset = (this.widgetType === widgetType.timeseries || this.widgetType === widgetType.latest); |
|
|
|
this.buildForms(); |
|
|
|
} |
|
|
|
const config = this.modelValue.config; |
|
|
|
|