From 7d48aca10d8d8285fb70367a6345a4b2add2df38 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Thu, 6 Nov 2025 18:58:14 +0200 Subject: [PATCH] UI: Fixed entity-aggregation-component.component.ts --- .../entity-aggregation-component.component.ts | 2 +- ui-ngx/src/app/shared/models/calculated-field.models.ts | 2 ++ ui-ngx/src/assets/locale/locale.constant-en_US.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/entity-aggregation-configuration/entity-aggregation-component.component.ts b/ui-ngx/src/app/modules/home/components/calculated-fields/components/entity-aggregation-configuration/entity-aggregation-component.component.ts index 44aba5b6fa..81fb709f99 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/entity-aggregation-configuration/entity-aggregation-component.component.ts +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/entity-aggregation-configuration/entity-aggregation-component.component.ts @@ -176,7 +176,7 @@ export class EntityAggregationComponentComponent implements ControlValueAccessor if (!value.interval.allowOffsetSec) { delete value.interval.offsetSec; } - delete value.interval.offsetSec; + delete value.interval.allowOffsetSec; if (!value.allowWatermark) { delete value.watermark; } diff --git a/ui-ngx/src/app/shared/models/calculated-field.models.ts b/ui-ngx/src/app/shared/models/calculated-field.models.ts index e0df001e3f..cfb7d38565 100644 --- a/ui-ngx/src/app/shared/models/calculated-field.models.ts +++ b/ui-ngx/src/app/shared/models/calculated-field.models.ts @@ -294,6 +294,7 @@ export enum AggIntervalType { WEEK = 'WEEK', WEEK_SUN_SAT = 'WEEK_SUN_SAT', MONTH = 'MONTH', + QUARTER = 'QUARTER', YEAR = 'YEAR', CUSTOM = 'CUSTOM' } @@ -305,6 +306,7 @@ export const AggIntervalTypeTranslations = new Map( [AggIntervalType.WEEK, 'calculated-fields.aggregate-period.week'], [AggIntervalType.WEEK_SUN_SAT, 'calculated-fields.aggregate-period.week-sun-sat'], [AggIntervalType.MONTH, 'calculated-fields.aggregate-period.month'], + [AggIntervalType.QUARTER, 'calculated-fields.aggregate-period.quarter'], [AggIntervalType.YEAR, 'calculated-fields.aggregate-period.year'], [AggIntervalType.CUSTOM, 'calculated-fields.aggregate-period.custom'] ] diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json index c05686b648..cff76239be 100644 --- a/ui-ngx/src/assets/locale/locale.constant-en_US.json +++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json @@ -1203,6 +1203,7 @@ "week": "Week (Mon - Sun)", "week-sun-sat": "Week (Sun - Sat)", "month": "Month", + "quarter": "Quarter", "year": "Year", "custom": "Custom" },