diff --git a/src/app/components/admin-data-page/admin-data-page.component.ts b/src/app/components/admin-data-page/admin-data-page.component.ts index 6c8cf46..e3fe8d9 100644 --- a/src/app/components/admin-data-page/admin-data-page.component.ts +++ b/src/app/components/admin-data-page/admin-data-page.component.ts @@ -69,9 +69,7 @@ export class AdminDataPageComponent implements OnInit { dialogRef.afterClosed().subscribe(result => { if (result === 1) { - let newUserData = this.userService.getDialogData(); - console.log("add user data"); newUserData.password = ''; newUserData.rolesString = newUserData.roles.join(', '); this.dataSource.data.push(newUserData); @@ -90,7 +88,6 @@ export class AdminDataPageComponent implements OnInit { dialogRef.afterClosed().subscribe(result => { if (result === 1) { - console.log("editing done"); let newUserData = this.userService.getDialogData(); const foundIndex = this.dataSource.data.findIndex(x => x.id === newUserData.id); diff --git a/src/app/components/dialogs/add/add.dialog.component.ts b/src/app/components/dialogs/add/add.dialog.component.ts index 0f2dedf..58177ae 100644 --- a/src/app/components/dialogs/add/add.dialog.component.ts +++ b/src/app/components/dialogs/add/add.dialog.component.ts @@ -53,7 +53,6 @@ export class AddDialogComponent { //this.loadAllObjects(); }, error => { - console.log("Eroor while editing: " + JSON.stringify(error)); this.snackbarService.openSnackBar(error, "Ok", true); } ); diff --git a/src/app/components/dialogs/delete/delete.dialog.component.ts b/src/app/components/dialogs/delete/delete.dialog.component.ts index ec250ce..296e823 100644 --- a/src/app/components/dialogs/delete/delete.dialog.component.ts +++ b/src/app/components/dialogs/delete/delete.dialog.component.ts @@ -26,7 +26,6 @@ export class DeleteDialogComponent { } confirmDelete(): void { - console.log("delete data " + JSON.stringify(this.data)); this.userService.deleteUser(this.data).pipe(first()) .subscribe( data => { diff --git a/src/app/components/from-select-search/form-select-search.component.ts b/src/app/components/from-select-search/form-select-search.component.ts index e2835ed..d39d8ed 100644 --- a/src/app/components/from-select-search/form-select-search.component.ts +++ b/src/app/components/from-select-search/form-select-search.component.ts @@ -103,10 +103,8 @@ export class FormSelectSearchComponent implements OnInit, OnDestroy, OnChanges { for (let risk of risks) { for (let riskItem of this.data) { if (risk._id === riskItem._id) { - console.log(this.label + " added id actual data: " + risk._id + " id background data: " + riskItem._id); if (this.multiple === undefined){ 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 this.selectedOptions.push(riskItem); } diff --git a/src/app/components/sidenav-profile/sidenav-profile.component.ts b/src/app/components/sidenav-profile/sidenav-profile.component.ts index 46dd7c7..f5a813a 100644 --- a/src/app/components/sidenav-profile/sidenav-profile.component.ts +++ b/src/app/components/sidenav-profile/sidenav-profile.component.ts @@ -21,7 +21,6 @@ export class SidenavProfileComponent implements OnInit { this.name = user.user.name; this.email = user.user.email; 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; } }); diff --git a/src/app/helper/snackbar-ref.component.ts b/src/app/helper/snackbar-ref.component.ts index d4c777a..8517efb 100644 --- a/src/app/helper/snackbar-ref.component.ts +++ b/src/app/helper/snackbar-ref.component.ts @@ -22,7 +22,6 @@ export class ErrorSnackbarComponent { public actionAndDismiss(){ - console.log("test"); let dialogRef = this.dialog.open(SnackbarDialog); dialogRef.componentInstance.errorMessages = this.data.errorMessages; this.snackBarRef.dismiss() diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts index 7a6315e..2933f3e 100644 --- a/src/app/pages/login/login.component.ts +++ b/src/app/pages/login/login.component.ts @@ -36,7 +36,6 @@ export class LoginComponent implements OnInit { .subscribe( () => this.router.navigateByUrl(this.returnUrl), (error) => { - console.log(JSON.stringify(error)); this.errorOccurred = true; this.errorMessage = error.error.message || diff --git a/src/app/services/auth.service.ts b/src/app/services/auth.service.ts index bdf43e5..5bea668 100644 --- a/src/app/services/auth.service.ts +++ b/src/app/services/auth.service.ts @@ -43,7 +43,6 @@ export class AuthService { } value.user.rolesString = roles.join(', '); - console.log("Getting user" + JSON.stringify(value)); } return value; }