Browse Source
Merge pull request #12324 from ChantsovaEkaterina/bug/fixed-applying-timewindow-config
Timewindow: fixed applying grouping interval on closing configuration dialog
pull/12336/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
7 additions and
4 deletions
-
ui-ngx/src/app/shared/components/time/timewindow-config-dialog.component.html
-
ui-ngx/src/app/shared/components/time/timewindow-panel.component.ts
|
|
|
@ -235,9 +235,10 @@ |
|
|
|
</mat-slide-toggle> |
|
|
|
</div> |
|
|
|
<div class="tb-form-row column-xs"> |
|
|
|
<ng-container |
|
|
|
*ngTemplateOutlet="timewindowForm.get('aggregation.type').value !== aggregationTypes.NONE ? hideAggInterval : null"> |
|
|
|
</ng-container> |
|
|
|
<ng-container formGroupName="realtime"> |
|
|
|
<ng-container *ngTemplateOutlet="hideAggInterval"> |
|
|
|
</ng-container> |
|
|
|
<tb-timeinterval |
|
|
|
formControlName="interval" |
|
|
|
[min]="minRealtimeAggInterval" [max]="maxRealtimeAggInterval" |
|
|
|
@ -257,7 +258,8 @@ |
|
|
|
</mat-slide-toggle> |
|
|
|
</div> |
|
|
|
<div class="tb-form-row column-xs"> |
|
|
|
<ng-container *ngTemplateOutlet="hideAggInterval"> |
|
|
|
<ng-container |
|
|
|
*ngTemplateOutlet="timewindowForm.get('aggregation.type').value !== aggregationTypes.NONE ? hideAggInterval : null"> |
|
|
|
</ng-container> |
|
|
|
<ng-container formGroupName="history"> |
|
|
|
<tb-timeinterval |
|
|
|
|
|
|
|
@ -413,7 +413,8 @@ export class TimewindowPanelComponent extends PageComponent implements OnInit, O |
|
|
|
} |
|
|
|
|
|
|
|
private updateTimewindowForm() { |
|
|
|
this.timewindowForm.patchValue(this.timewindow); |
|
|
|
this.timewindowForm.patchValue(this.timewindow, {emitEvent: false}); |
|
|
|
this.updateValidators(this.timewindowForm.get('aggregation.type').value); |
|
|
|
|
|
|
|
if (this.timewindow.realtime.hideInterval) { |
|
|
|
this.timewindowForm.get('realtime.realtimeType').disable({emitEvent: false}); |
|
|
|
|