X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fapp%2Fvim-accounts%2Fnew-vimaccount%2FNewVimaccountComponent.ts;h=a57b7822a7a50591fa485325f04323971a62fee1;hb=0a34dfa32165036b380ec6ac493469b34007df0a;hp=3f44af5d0321a73240ca9481fc82695f9b3c4d02;hpb=1245fc89f257bdc1c8db06d1f9f57e0e2eb760e2;p=osm%2FNG-UI.git diff --git a/src/app/vim-accounts/new-vimaccount/NewVimaccountComponent.ts b/src/app/vim-accounts/new-vimaccount/NewVimaccountComponent.ts index 3f44af5..a57b782 100644 --- a/src/app/vim-accounts/new-vimaccount/NewVimaccountComponent.ts +++ b/src/app/vim-accounts/new-vimaccount/NewVimaccountComponent.ts @@ -18,6 +18,7 @@ /** * @file Vim Account Component. */ + import { isNullOrUndefined } from 'util'; import { HttpHeaders } from '@angular/common/http'; import { Component, ElementRef, Injector, OnInit, ViewChild } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; @@ -47,9 +48,7 @@ import { environment } from 'environment'; import * as jsyaml from 'js-yaml'; import { RestService } from 'RestService'; import { SharedService } from 'SharedService'; -import { isNullOrUndefined } from 'util'; -import { FEATURES, VIMLOCATION, VIMLOCATIONDATA } from 'VimAccountModel'; -import { VimAccountDetails, VIMData } from 'VimAccountModel'; +import { VimAccountDetails } from 'VimAccountModel'; /** * Creating component @@ -80,9 +79,6 @@ export class NewVimaccountComponent implements OnInit { /** Showing more details of collapase */ public isCollapsed: boolean = false; - /** Vim location values @public */ - public getVIMLocation: VIMLOCATIONDATA[] = []; - /** Check the Projects loading results @public */ public isLocationLoadingResults: boolean = false; @@ -102,6 +98,7 @@ export class NewVimaccountComponent implements OnInit { /** options @public */ public options: {} = { + // eslint-disable-next-line no-invalid-this mode: this.modeDefault, showCursorWhenSelecting: true, autofocus: true, @@ -212,6 +209,7 @@ export class NewVimaccountComponent implements OnInit { } else { Object.keys(this.vimNewAccountForm.value.config).forEach((res: string): void => { if (res !== 'location') { + // eslint-disable-next-line @typescript-eslint/no-dynamic-delete, security/detect-object-injection delete this.vimNewAccountForm.value.config[res]; } }); @@ -227,7 +225,9 @@ export class NewVimaccountComponent implements OnInit { } Object.keys(this.vimNewAccountForm.value.config).forEach((res: string): void => { + // eslint-disable-next-line security/detect-object-injection if (isNullOrUndefined(this.vimNewAccountForm.value.config[res]) || this.vimNewAccountForm.value.config[res] === '') { + // eslint-disable-next-line @typescript-eslint/no-dynamic-delete, security/detect-object-injection delete this.vimNewAccountForm.value.config[res]; } });