X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpybind%2Fmgr%2Fdashboard%2Ffrontend%2Fsrc%2Fapp%2Fceph%2Fblock%2Fiscsi-target-image-settings-modal%2Fiscsi-target-image-settings-modal.component.ts;h=b16de82618bfe542b657c92f8d54bc1acc1eb097;hb=aee94f6923ba628a85d855d0c5316d0da78bfa2a;hp=e9c9c7d90daae3e8a2918383e58d3d027c668c2c;hpb=27f45121cc74e31203777ad565f78d8aad9b92a2;p=ceph.git diff --git a/ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-image-settings-modal/iscsi-target-image-settings-modal.component.ts b/ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-image-settings-modal/iscsi-target-image-settings-modal.component.ts index e9c9c7d90..b16de8261 100644 --- a/ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-image-settings-modal/iscsi-target-image-settings-modal.component.ts +++ b/ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-target-image-settings-modal/iscsi-target-image-settings-modal.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { AbstractControl, FormControl } from '@angular/forms'; +import { AbstractControl, UntypedFormControl } from '@angular/forms'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import _ from 'lodash'; @@ -31,15 +31,15 @@ export class IscsiTargetImageSettingsModalComponent implements OnInit { ) {} ngOnInit() { - const fg: Record = { - backstore: new FormControl(this.imagesSettings[this.image]['backstore']), - lun: new FormControl(this.imagesSettings[this.image]['lun']), - wwn: new FormControl(this.imagesSettings[this.image]['wwn']) + const fg: Record = { + backstore: new UntypedFormControl(this.imagesSettings[this.image]['backstore']), + lun: new UntypedFormControl(this.imagesSettings[this.image]['lun']), + wwn: new UntypedFormControl(this.imagesSettings[this.image]['wwn']) }; _.forEach(this.backstores, (backstore) => { const model = this.imagesSettings[this.image][backstore] || {}; _.forIn(this.disk_default_controls[backstore], (_value, key) => { - fg[key] = new FormControl(model[key]); + fg[key] = new UntypedFormControl(model[key]); }); });