]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.ts
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / block / rbd-configuration-form / rbd-configuration-form.component.ts
index 3ced71f0264825bc9c04b40dbca0be46e88dbd73..7b5fe992f283e68102bbfc98364f2103d856d49c 100644 (file)
@@ -1,5 +1,5 @@
 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';
@@ -113,7 +113,7 @@ export class RbdConfigurationFormComponent implements OnInit {
     const configFormGroup = new CdFormGroup({});
 
     this.rbdConfigurationService.getWritableOptionFields().forEach((c) => {
-      let control: FormControl;
+      let control: UntypedFormControl;
       if (
         c.type === RbdConfigurationType.milliseconds ||
         c.type === RbdConfigurationType.iops ||
@@ -125,7 +125,7 @@ export class RbdConfigurationFormComponent implements OnInit {
             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`