|
|
|
@ -1250,7 +1250,8 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC |
|
|
|
col: 0 |
|
|
|
}; |
|
|
|
newWidget = this.dashboardUtils.validateAndUpdateWidget(newWidget); |
|
|
|
if (this.isAddingToScadaLayout()) { |
|
|
|
const scada = this.isAddingToScadaLayout(); |
|
|
|
if (scada) { |
|
|
|
newWidget = this.dashboardUtils.prepareWidgetForScadaLayout(newWidget); |
|
|
|
} |
|
|
|
if (widgetTypeInfo.typeParameters.useCustomDatasources) { |
|
|
|
@ -1267,7 +1268,8 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC |
|
|
|
aliasController: this.dashboardCtx.aliasController, |
|
|
|
stateController: this.dashboardCtx.stateController, |
|
|
|
widget: newWidget, |
|
|
|
widgetInfo: widgetTypeInfo |
|
|
|
widgetInfo: widgetTypeInfo, |
|
|
|
scada |
|
|
|
} |
|
|
|
}).afterClosed().subscribe((addedWidget) => { |
|
|
|
if (addedWidget) { |
|
|
|
|