|
|
@ -120,6 +120,10 @@ export class CalculatedFieldOutputComponent implements ControlValueAccessor, Val |
|
|
this.updatedStrategy(); |
|
|
this.updatedStrategy(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.outputForm.get('strategy.saveTimeSeries').valueChanges |
|
|
|
|
|
.pipe(takeUntilDestroyed(this.destroyRef)) |
|
|
|
|
|
.subscribe(value => this.updateTimeSeriesTtl(value)); |
|
|
|
|
|
|
|
|
merge( |
|
|
merge( |
|
|
this.outputForm.get('strategy.type').valueChanges, |
|
|
this.outputForm.get('strategy.type').valueChanges, |
|
|
this.outputForm.get('strategy.useCustomTtl').valueChanges |
|
|
this.outputForm.get('strategy.useCustomTtl').valueChanges |
|
|
@ -178,6 +182,7 @@ export class CalculatedFieldOutputComponent implements ControlValueAccessor, Val |
|
|
this.updatedFormWithMode(); |
|
|
this.updatedFormWithMode(); |
|
|
this.toggleScopeByOutputType(this.outputForm.get('type').value); |
|
|
this.toggleScopeByOutputType(this.outputForm.get('type').value); |
|
|
this.updatedStrategy(); |
|
|
this.updatedStrategy(); |
|
|
|
|
|
this.updateTimeSeriesTtl(this.outputForm.get('strategy.saveTimeSeries').value); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -242,4 +247,13 @@ export class CalculatedFieldOutputComponent implements ControlValueAccessor, Val |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private updateTimeSeriesTtl(value: boolean) { |
|
|
|
|
|
if (value) { |
|
|
|
|
|
this.outputForm.get('strategy.useCustomTtl').enable({emitEvent: true}); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.outputForm.get('strategy.useCustomTtl').disable({emitEvent: false}); |
|
|
|
|
|
this.outputForm.get('strategy.ttl').disable({emitEvent: false}); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|