Merge pull request #12324 from ChantsovaEkaterina/bug/fixed-applying-timewindow-config
Timewindow: fixed applying grouping interval on closing configuration dialog
This commit is contained in:
		
						commit
						73977b0969
					
				@ -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});
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user