removed debug logging

master
FlayInAHook 4 years ago
parent 12692b8a58
commit fcc75b35a3

@ -69,9 +69,7 @@ export class AdminDataPageComponent implements OnInit {
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
if (result === 1) { if (result === 1) {
let newUserData = this.userService.getDialogData(); let newUserData = this.userService.getDialogData();
console.log("add user data");
newUserData.password = ''; newUserData.password = '';
newUserData.rolesString = newUserData.roles.join(', '); newUserData.rolesString = newUserData.roles.join(', ');
this.dataSource.data.push(newUserData); this.dataSource.data.push(newUserData);
@ -90,7 +88,6 @@ export class AdminDataPageComponent implements OnInit {
dialogRef.afterClosed().subscribe(result => { dialogRef.afterClosed().subscribe(result => {
if (result === 1) { if (result === 1) {
console.log("editing done");
let newUserData = this.userService.getDialogData(); let newUserData = this.userService.getDialogData();
const foundIndex = this.dataSource.data.findIndex(x => x.id === newUserData.id); const foundIndex = this.dataSource.data.findIndex(x => x.id === newUserData.id);

@ -53,7 +53,6 @@ export class AddDialogComponent {
//this.loadAllObjects(); //this.loadAllObjects();
}, },
error => { error => {
console.log("Eroor while editing: " + JSON.stringify(error));
this.snackbarService.openSnackBar(error, "Ok", true); this.snackbarService.openSnackBar(error, "Ok", true);
} }
); );

@ -26,7 +26,6 @@ export class DeleteDialogComponent {
} }
confirmDelete(): void { confirmDelete(): void {
console.log("delete data " + JSON.stringify(this.data));
this.userService.deleteUser(this.data).pipe(first()) this.userService.deleteUser(this.data).pipe(first())
.subscribe( .subscribe(
data => { data => {

@ -103,10 +103,8 @@ export class FormSelectSearchComponent implements OnInit, OnDestroy, OnChanges {
for (let risk of risks) { for (let risk of risks) {
for (let riskItem of this.data) { for (let riskItem of this.data) {
if (risk._id === riskItem._id) { if (risk._id === riskItem._id) {
console.log(this.label + " added id actual data: " + risk._id + " id background data: " + riskItem._id);
if (this.multiple === undefined){ if (this.multiple === undefined){
this.selectedOptions = riskItem; this.selectedOptions = riskItem;
console.log("set instead of add");
} else if (this.selectedOptions.find(e => e._id === risk._id) == undefined){ // only add it to the list if its not added already } else if (this.selectedOptions.find(e => e._id === risk._id) == undefined){ // only add it to the list if its not added already
this.selectedOptions.push(riskItem); this.selectedOptions.push(riskItem);
} }

@ -21,7 +21,6 @@ export class SidenavProfileComponent implements OnInit {
this.name = user.user.name; this.name = user.user.name;
this.email = user.user.email; this.email = user.user.email;
if (user.user.attributes === null || (Object.keys(user.user.attributes).length === 0 && user.user.attributes.constructor === Object)) return; if (user.user.attributes === null || (Object.keys(user.user.attributes).length === 0 && user.user.attributes.constructor === Object)) return;
console.log("profile url: " + JSON.stringify(user.user.attributes));
this.profileURL = user.user.attributes.profile_url; this.profileURL = user.user.attributes.profile_url;
} }
}); });

@ -22,7 +22,6 @@ export class ErrorSnackbarComponent {
public actionAndDismiss(){ public actionAndDismiss(){
console.log("test");
let dialogRef = this.dialog.open(SnackbarDialog); let dialogRef = this.dialog.open(SnackbarDialog);
dialogRef.componentInstance.errorMessages = this.data.errorMessages; dialogRef.componentInstance.errorMessages = this.data.errorMessages;
this.snackBarRef.dismiss() this.snackBarRef.dismiss()

@ -36,7 +36,6 @@ export class LoginComponent implements OnInit {
.subscribe( .subscribe(
() => this.router.navigateByUrl(this.returnUrl), () => this.router.navigateByUrl(this.returnUrl),
(error) => { (error) => {
console.log(JSON.stringify(error));
this.errorOccurred = true; this.errorOccurred = true;
this.errorMessage = this.errorMessage =
error.error.message || error.error.message ||

@ -43,7 +43,6 @@ export class AuthService {
} }
value.user.rolesString = roles.join(', '); value.user.rolesString = roles.join(', ');
console.log("Getting user" + JSON.stringify(value));
} }
return value; return value;
} }

Loading…
Cancel
Save