Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export class BoardComponent implements OnInit, OnDestroy {

closeModal() {
this.selectedCandidateCard = null;
console.log('closeModal', this.board?.lists);
}

archive(card: CandidateCard): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ export class InterviewFormGroup extends FormGroup {

createRequest(selectedLabels: Array<Label>): InterviewCreateRequest | null {
if (!this.valid) {
console.log('createRequest invalid');
console.error('createRequest invalid', this.errors);
this.markAllAsTouched();
console.log(this.errors);
console.log(this.get('overallOpinion')?.value);
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class AlertStubService implements IAlertService {
}

error(message: string, keepAfterRouteChange: boolean): void {
console.log(message);
console.error(message);
}

info(message: string, keepAfterRouteChange: boolean): void {
Expand Down
1 change: 0 additions & 1 deletion src/app/shared/guards/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export class AuthGuard implements CanActivate {
route: ActivatedRouteSnapshot | null,
state: RouterStateSnapshot | null): boolean {

console.log('State', state);
if (this.authService.isAuthenticated()) {
return true;
}
Expand Down
1 change: 0 additions & 1 deletion src/app/shared/guards/permissions-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export class PermissionsService {
private readonly cookieService: CookieService) {}

canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean {
console.log('State', state);
if (this.authService.isAuthenticated()) {
return true;
}
Expand Down
4 changes: 1 addition & 3 deletions src/app/shared/interceptors/auth-interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class AuthInterceptor implements HttpInterceptor {

private checkIsNotAuthorizeError(error: HttpErrorResponse): boolean {
const notAuthStatusCode = 401;
console.log(error);
console.error(error);
if (error.status === notAuthStatusCode) {
return true;
}
Expand All @@ -73,8 +73,6 @@ export class AuthInterceptor implements HttpInterceptor {
// unauthorized
if (this.checkIsNotAuthorizeError(error)) {
this.authService!.signout();

console.log('Navigated by auth interceptor to main page');
this.router.navigate(['/']);
return true;
}
Expand Down
1 change: 0 additions & 1 deletion src/app/shared/services/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export class AuthService implements IAuthService {
completeAuthentication(): Observable<IdToken | null> {
return this.oidcManager.completeAuthentication().pipe(map(x => {
this.authorizationInfo = x;
console.log('completeAuthentication', this.authorizationInfo);
this.reloadInternalProperties();
return x ?? null;
}));
Expand Down