removed unnecessary console logs
This commit is contained in:
parent
f3c6370394
commit
e1dfa37f63
2 changed files with 0 additions and 20 deletions
|
@ -239,31 +239,23 @@ export class AddDataComponent implements OnInit {
|
||||||
.subscribe(
|
.subscribe(
|
||||||
result => {
|
result => {
|
||||||
if ( result.success === true ) {
|
if ( result.success === true ) {
|
||||||
console.log('Successful Upload');
|
|
||||||
console.log(result);
|
|
||||||
this.transactionFormStatus = 'success';
|
this.transactionFormStatus = 'success';
|
||||||
console.log(this.transactionFormStatus);
|
|
||||||
this.resetForm();
|
this.resetForm();
|
||||||
} else {
|
} else {
|
||||||
console.log('Upload Error');
|
|
||||||
this.transactionFormStatusError = JSON.stringify(result.status) + 'Error, ' + JSON.stringify(result.message);
|
this.transactionFormStatusError = JSON.stringify(result.status) + 'Error, ' + JSON.stringify(result.message);
|
||||||
this.transactionFormStatus = 'send_failed';
|
this.transactionFormStatus = 'send_failed';
|
||||||
console.log(this.transactionFormStatus);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
console.log('Upload Error');
|
|
||||||
console.log(error);
|
console.log(error);
|
||||||
try {
|
try {
|
||||||
console.log(error.error);
|
console.log(error.error);
|
||||||
const jsonError = error.json();
|
const jsonError = error.json();
|
||||||
console.log('boop');
|
|
||||||
this.transactionFormStatusError = '"' + jsonError.error + '" Error, ' + jsonError.message;
|
this.transactionFormStatusError = '"' + jsonError.error + '" Error, ' + jsonError.message;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.transactionFormStatusError = 'There was a server error, please try again later.';
|
this.transactionFormStatusError = 'There was a server error, please try again later.';
|
||||||
}
|
}
|
||||||
this.transactionFormStatus = 'send_failed';
|
this.transactionFormStatus = 'send_failed';
|
||||||
console.log(this.transactionFormStatus);
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -291,14 +283,11 @@ export class AddDataComponent implements OnInit {
|
||||||
.orgPayroll(this.payrollForm.value)
|
.orgPayroll(this.payrollForm.value)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
result => {
|
result => {
|
||||||
console.log('data submitted!');
|
|
||||||
this.payrollFormStatus = 'success';
|
this.payrollFormStatus = 'success';
|
||||||
console.log(this.payrollFormStatus);
|
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
console.log( error._body );
|
console.log( error._body );
|
||||||
this.payrollFormStatus = 'send_failed';
|
this.payrollFormStatus = 'send_failed';
|
||||||
console.log(this.payrollFormStatus);
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -310,14 +299,10 @@ export class AddDataComponent implements OnInit {
|
||||||
.orgSupplier(this.singleSupplierForm.value)
|
.orgSupplier(this.singleSupplierForm.value)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
result => {
|
result => {
|
||||||
console.log('data submitted!');
|
|
||||||
this.singleSupplierFormStatus = 'success';
|
this.singleSupplierFormStatus = 'success';
|
||||||
console.log(this.singleSupplierFormStatus);
|
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
console.log( error._body );
|
|
||||||
this.singleSupplierFormStatus = 'send_failed';
|
this.singleSupplierFormStatus = 'send_failed';
|
||||||
console.log(this.singleSupplierFormStatus);
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -329,14 +314,10 @@ export class AddDataComponent implements OnInit {
|
||||||
.orgEmployee(this.employeeForm.value)
|
.orgEmployee(this.employeeForm.value)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
result => {
|
result => {
|
||||||
console.log('data submitted!');
|
|
||||||
this.employeeFormStatus = 'success';
|
this.employeeFormStatus = 'success';
|
||||||
console.log(this.employeeFormStatus);
|
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
console.log( error._body );
|
|
||||||
this.employeeFormStatus = 'send_failed';
|
this.employeeFormStatus = 'send_failed';
|
||||||
console.log(this.employeeFormStatus);
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,6 @@ export class TrailMapComponent implements OnInit, AfterViewInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
public onMarkerClick(clickedMarker, template: TemplateRef<any>) {
|
public onMarkerClick(clickedMarker, template: TemplateRef<any>) {
|
||||||
console.log(clickedMarker);
|
|
||||||
this.clickedMarker = clickedMarker;
|
this.clickedMarker = clickedMarker;
|
||||||
this.assocLogo = 'assets/img/association/' + this.assocMap + '-logo.png';
|
this.assocLogo = 'assets/img/association/' + this.assocMap + '-logo.png';
|
||||||
this.openModal(template);
|
this.openModal(template);
|
||||||
|
|
Reference in a new issue