X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNG-UI.git;a=blobdiff_plain;f=src%2Fapp%2Fwim-accounts%2Fnew-wim-account%2FNewWIMAccountComponent.ts;fp=src%2Fapp%2Fwim-accounts%2Fnew-wim-account%2FNewWIMAccountComponent.ts;h=65ae9370b58cf6ea0c71bbed921d0c60a53ab32a;hp=5b8e29aae7e8ea82bbeb6e3cba5760963352b3a9;hb=0a34dfa32165036b380ec6ac493469b34007df0a;hpb=40cc37ef2bbc4aac5debc9dea0baeb6dbd87a2d7 diff --git a/src/app/wim-accounts/new-wim-account/NewWIMAccountComponent.ts b/src/app/wim-accounts/new-wim-account/NewWIMAccountComponent.ts index 5b8e29a..65ae937 100644 --- a/src/app/wim-accounts/new-wim-account/NewWIMAccountComponent.ts +++ b/src/app/wim-accounts/new-wim-account/NewWIMAccountComponent.ts @@ -18,6 +18,7 @@ /** * @file WIM Account Component. */ +import { isNullOrUndefined } from 'util'; import { HttpHeaders } from '@angular/common/http'; import { Component, ElementRef, Injector, OnInit, ViewChild } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; @@ -29,7 +30,6 @@ import { environment } from 'environment'; import * as jsyaml from 'js-yaml'; import { RestService } from 'RestService'; import { SharedService } from 'SharedService'; -import { isNullOrUndefined } from 'util'; /** * Creating component @@ -169,7 +169,6 @@ export class NewWIMAccountComponent implements OnInit { if (files && files.length === 1) { this.sharedService.getFileString(files, 'yaml').then((fileContent: string): void => { const getConfigJson: string = jsyaml.load(fileContent, { json: true }); - // tslint:disable-next-line: no-backbone-get-set-outside-model this.wimNewAccountForm.get('config').setValue(JSON.stringify(getConfigJson)); }).catch((err: string): void => { if (err === 'typeError') {