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 => {
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);

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

@ -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 => {

@ -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);
}

@ -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;
}
});

@ -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()

@ -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 ||

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

Loading…
Cancel
Save