diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-layer-dialog.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-layer-dialog.component.ts index af653308da..8813f18263 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-layer-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-layer-dialog.component.ts @@ -496,7 +496,7 @@ export class MapDataLayerDialogComponent extends DialogComponent { if (updatedDataKey) { this.dataLayerFormGroup.get(keyType).patchValue(updatedDataKey); diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-layer-row.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-layer-row.component.ts index 76a878e174..5489f0e435 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-layer-row.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-data-layer-row.component.ts @@ -247,7 +247,7 @@ export class MapDataLayerRowComponent implements ControlValueAccessor, OnInit { const targetDataKey: DataKey = this.dataLayerFormGroup.get(keyType).value; this.context.editKey(targetDataKey, this.dataLayerFormGroup.get('dsDeviceId').value, this.dataLayerFormGroup.get('dsEntityAliasId').value, - this.dataLayerType === 'trips' ? widgetType.timeseries : widgetType.latest).subscribe( + this.dataLayerType === 'trips' ? widgetType.timeseries : widgetType.latest, false).subscribe( (updatedDataKey) => { if (updatedDataKey) { this.dataLayerFormGroup.get(keyType).patchValue(updatedDataKey); diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-settings.component.models.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-settings.component.models.ts index 9ce92c5c4a..53c6ff3099 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-settings.component.models.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-settings.component.models.ts @@ -24,6 +24,7 @@ export interface MapSettingsContext { aliasController: IAliasController; callbacks: WidgetConfigCallbacks; widget: Widget; - editKey: (key: DataKey, deviceId: string, entityAliasId: string, WidgetType?: widgetType) => Observable; + editKey: (key: DataKey, deviceId: string, entityAliasId: string, WidgetType?: widgetType, + hideDataKeyAggregation?: boolean) => Observable; generateDataKey: (key: DataKey) => DataKey; } diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-settings.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-settings.component.ts index ab32155420..adb2d77fce 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-settings.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/map/map-settings.component.ts @@ -304,7 +304,8 @@ export class MapSettingsComponent implements OnInit, ControlValueAccessor, Valid this.propagateChange(this.modelValue); } - private editKey(key: DataKey, deviceId: string, entityAliasId: string, _widgetType = widgetType.latest): Observable { + private editKey(key: DataKey, deviceId: string, entityAliasId: string, _widgetType = widgetType.latest, + hideDataKeyAggregation = true): Observable { return this.dialog.open(DataKeyConfigDialogComponent, { disableClose: true, @@ -321,6 +322,7 @@ export class MapSettingsComponent implements OnInit, ControlValueAccessor, Valid hideDataKeyColor: true, hideDataKeyDecimals: true, hideDataKeyUnits: true, + hideDataKeyAggregation: hideDataKeyAggregation, widget: this.widget, dashboard: null, dataKeySettingsForm: null,