diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.ts index d4c315c36cc..5228063ddc3 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { FormControl, FormGroup, Validators } from '@angular/forms'; +import { FormControl, FormGroup, ValidatorFn, Validators } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import * as _ from 'lodash'; @@ -293,7 +293,7 @@ export class RbdFormComponent implements OnInit { this.pools = newPools; } - validateRbdForm(formatter: FormatterService) { + validateRbdForm(formatter: FormatterService): ValidatorFn { return (formGroup: FormGroup) => { // Data Pool const useDataPoolControl = formGroup.get('useDataPool'); @@ -340,6 +340,7 @@ export class RbdFormComponent implements OnInit { stripingCountControlErrors = {'min': true}; } stripingCountControl.setErrors(stripingCountControlErrors); + return null; }; }