mirror of
https://github.com/ceph/ceph
synced 2025-03-30 15:31:01 +00:00
mgr/dashboard: Taking care of deprecation warnings and other errors
1. deprecation group is deprecated: This API is not typesafe and can result in issues with Closure Compiler renaming. Use the `FormBuilder#group` overload with `AbstractControlOptions` instead. 2. cypress/integration/rgw/users.po.ts(113,23): error TS2345: Argument of type 'void' is not assignable to parameter of type 'string'. 3. Cannot find module 'isomorphic-form-data' from 'node_modules/swagger-ui/dist/swagger-ui.js' Fixes: https://tracker.ceph.com/issues/50268 Signed-off-by: Nizamudeen A <nia@redhat.com>
This commit is contained in:
parent
de26485018
commit
f7d73d0420
@ -109,7 +109,7 @@ export class UsersPageHelper extends PageHelper {
|
||||
// creating this user to edit for the test
|
||||
this.navigateTo('create');
|
||||
this.create(tenant, uname, 'xxx', 'xxx@xxx', '50');
|
||||
|
||||
const name = tenant + '$' + uname;
|
||||
this.navigateEdit(name);
|
||||
|
||||
// put invalid email to make field invalid
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { FormBuilder } from '@angular/forms';
|
||||
import { AbstractControlOptions, FormBuilder } from '@angular/forms';
|
||||
|
||||
import { CdFormGroup } from './cd-form-group';
|
||||
|
||||
@ -12,7 +12,7 @@ import { CdFormGroup } from './cd-form-group';
|
||||
export class CdFormBuilder extends FormBuilder {
|
||||
group(
|
||||
controlsConfig: { [key: string]: any },
|
||||
extra: { [key: string]: any } | null = null
|
||||
extra: AbstractControlOptions | null = null
|
||||
): CdFormGroup {
|
||||
const form = super.group(controlsConfig, extra);
|
||||
return new CdFormGroup(form.controls, form.validator, form.asyncValidator);
|
||||
|
Loading…
Reference in New Issue
Block a user