]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/components/select/select.component.ts
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / components / select / select.component.ts
index 3ff19fe04c238fb4debf1eba264ee8d9972d4de4..e83312e911ff489aebac05f0ded034d3734e346e 100644 (file)
@@ -1,5 +1,5 @@
 import { Component, EventEmitter, Input, OnChanges, OnInit, Output } from '@angular/core';
-import { FormControl, ValidatorFn } from '@angular/forms';
+import { UntypedFormControl, ValidatorFn } from '@angular/forms';
 
 import _ from 'lodash';
 
@@ -33,7 +33,7 @@ export class SelectComponent implements OnInit, OnChanges {
   selection = new EventEmitter();
 
   form: CdFormGroup;
-  filter: FormControl;
+  filter: UntypedFormControl;
   Object = Object;
   filteredOptions: Array<SelectOption> = [];
   icons = Icons;
@@ -48,7 +48,7 @@ export class SelectComponent implements OnInit, OnChanges {
   }
 
   private initFilter() {
-    this.filter = new FormControl('', { validators: this.customBadgeValidators });
+    this.filter = new UntypedFormControl('', { validators: this.customBadgeValidators });
     this.form = new CdFormGroup({ filter: this.filter });
     this.filteredOptions = [...(this.options || [])];
   }