diff --git a/src/app/transfer/transfer.component.ts b/src/app/transfer/transfer.component.ts index 7fe4e3cb9f73ae4d3eefde8f74677a28ecc5e0df..17bbad8edbcea77ae3ec83b1b618411aa4fe566e 100644 --- a/src/app/transfer/transfer.component.ts +++ b/src/app/transfer/transfer.component.ts @@ -73,22 +73,16 @@ processError(idx,error) { } newDirectory(idx: number, name: string) { - console.log('attempt to create directory',name,'on',this.id[idx]); this.working[idx].next(true); this.tesService.postMkDir(this.id[idx],this.path[idx],name).subscribe(resp => this.getSftpls(idx,'.'), error => this.processError(idx,error)); } getSftpls(idx,cd) { - console.log('getSftpls'); - console.log(this.id); - console.log(idx); this.working[idx].next(true); this.tesService.getSftpData(this.id[idx],this.path[idx],cd).subscribe(resp => this.updateSftpls(idx,resp), error => this.processError(idx,error)); } makeFileElements(data) { - console.log('making file elements'); - console.log(data); var rv: FileElement[] = []; var fe: FileElement; for (let f of data) { @@ -110,9 +104,6 @@ makeFileElements(data) { updateSftpls(idx,resp) { let files = this.makeFileElements(resp.files); - console.log(resp); - console.log('got the current path',resp.pwd); - console.log('got a list files', resp.files); if (resp.pwd.length > 1) { this.canNavigateUp[idx].next(true); } else { @@ -120,7 +111,6 @@ makeFileElements(data) { } this.path[idx] = resp.pwd; - console.log('full uri',this.id[idx].username+"@"+this.id[idx].site.name+":"+this.path[idx]); this.pathSubject[idx].next(this.path[idx]); this.fileElements[idx].next(files); this.working[idx].next(false); @@ -129,11 +119,8 @@ makeFileElements(data) { setId(idx,event) { - console.log('setid'); - console.log(event); this.id[idx] = event.value; if ((this.id[0] != null) && (this.id[1] != null)) { - console.log('enabling the send function, two ids are selected'); this.disableSend = false; } this.path[idx]="."; @@ -143,7 +130,6 @@ makeFileElements(data) { } navLaunch() { - console.log('attempting navLaunch'); this.router.navigate(['/launch']); } @@ -152,7 +138,6 @@ makeFileElements(data) { } navigateUp(idx: number, event: any) { - console.log('attempting navigate up',idx); this.getSftpls(idx,'..'); } @@ -173,10 +158,7 @@ makeFileElements(data) { 'id': this.id[dest], 'path': this.path[dest] }}); - console.log('send file activated, nagivating to redirect uri'); window.parent.postMessage({'appData':appparams},'*'); - } else { - console.log('Dont send file not enough servers'+element.name+' on '); } }