import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
-import { FormControl, Validators } from '@angular/forms';
+import { UntypedFormControl, Validators } from '@angular/forms';
import _ from 'lodash';
import { ReplaySubject } from 'rxjs';
const configFormGroup = new CdFormGroup({});
this.rbdConfigurationService.getWritableOptionFields().forEach((c) => {
- let control: FormControl;
+ let control: UntypedFormControl;
if (
c.type === RbdConfigurationType.milliseconds ||
c.type === RbdConfigurationType.iops ||
initialValue = configList['value'];
}
});
- control = new FormControl(initialValue, Validators.min(0));
+ control = new UntypedFormControl(initialValue, Validators.min(0));
} else {
throw new Error(
`Type ${c.type} is unknown, you may need to add it to RbdConfiguration class`