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:
Nizamudeen A 2021-09-30 13:17:15 +05:30
parent de26485018
commit f7d73d0420
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);