Skip to content
Snippets Groups Projects
Commit 5904e1e8 authored by Chris Hines's avatar Chris Hines
Browse files

remove some console logging

parent c9a415c0
No related branches found
No related tags found
No related merge requests found
......@@ -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 ');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment