Browse Source

UI: fix cancelling timewindow config change

pull/11633/head
Chantsova Ekaterina 2 years ago
parent
commit
1e63ca3d6a
  1. 4
      ui-ngx/src/app/shared/components/time/timewindow-panel.component.ts

4
ui-ngx/src/app/shared/components/time/timewindow-panel.component.ts

@ -32,7 +32,7 @@ import { Store } from '@ngrx/store';
import { AppState } from '@core/core.state'; import { AppState } from '@core/core.state';
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms'; import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
import { TimeService } from '@core/services/time.service'; import { TimeService } from '@core/services/time.service';
import { isDefined } from '@core/utils'; import { deepClone, isDefined } from '@core/utils';
import { OverlayRef } from '@angular/cdk/overlay'; import { OverlayRef } from '@angular/cdk/overlay';
import { ToggleHeaderOption } from '@shared/components/toggle-header.component'; import { ToggleHeaderOption } from '@shared/components/toggle-header.component';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
@ -489,7 +489,7 @@ export class TimewindowPanelComponent extends PageComponent implements OnInit {
data: { data: {
quickIntervalOnly: this.quickIntervalOnly, quickIntervalOnly: this.quickIntervalOnly,
aggregation: this.aggregation, aggregation: this.aggregation,
timewindow: this.timewindow timewindow: deepClone(this.timewindow)
} }
}).afterClosed() }).afterClosed()
.subscribe((res) => { .subscribe((res) => {

Loading…
Cancel
Save