]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-reweight-modal/osd-reweight-modal.component.ts
import quincy beta 17.1.0
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / cluster / osd / osd-reweight-modal / osd-reweight-modal.component.ts
index d101079776e0dd8bd34230ab9004de4454e12b82..acbdb2d8ff5f357486d186a26f9e28679b6ec891 100644 (file)
@@ -31,11 +31,7 @@ export class OsdReweightModalComponent implements OnInit {
 
   ngOnInit() {
     this.reweightForm = this.fb.group({
-      weight: this.fb.control(this.currentWeight, [
-        Validators.required,
-        Validators.max(1),
-        Validators.min(0)
-      ])
+      weight: this.fb.control(this.currentWeight, [Validators.required])
     });
   }