diff --git a/src/app/shared/services/signalR/signal-r.service.ts b/src/app/shared/services/signalR/signal-r.service.ts index 07e908e7f9..9ebc721229 100644 --- a/src/app/shared/services/signalR/signal-r.service.ts +++ b/src/app/shared/services/signalR/signal-r.service.ts @@ -29,7 +29,6 @@ export class SignalRService { this.hubConnection .start() - .then(() => console.log('Connection started')) .catch(err => console.error('Error while starting connection: ' + err)); this.hubConnection.on("ReceiveNotification", (notification: Notification) => { diff --git a/src/app/shared/store/admin.state.ts b/src/app/shared/store/admin.state.ts index 51bee3d649..486a69fc3f 100644 --- a/src/app/shared/store/admin.state.ts +++ b/src/app/shared/store/admin.state.ts @@ -283,7 +283,6 @@ export class AdminState { @Action(OnDeleteDirectionSuccess) onDeleteDirectionSuccess({ dispatch }: StateContext, { payload }: OnDeleteDirectionSuccess): void { - console.log('Direction is deleted', payload); dispatch([new ShowMessageBar({ message: 'Напрямок видалено!', type: 'success' }), new GetFilteredDirections()]); } @@ -312,7 +311,6 @@ export class AdminState { ]); patchState({ direction: payload }); this.location.back(); - console.log('Direction is created', payload); } @Action(UpdateDirection) updateDirection( @@ -340,7 +338,6 @@ export class AdminState { new GetFilteredDirections(), ]); this.location.back(); - console.log('Direction is updated', payload); } @Action(GetDirectionById) diff --git a/src/app/shared/store/registration.state.ts b/src/app/shared/store/registration.state.ts index 8bbb9f996d..62a979048c 100644 --- a/src/app/shared/store/registration.state.ts +++ b/src/app/shared/store/registration.state.ts @@ -153,7 +153,6 @@ export class RegistrationState { @Action(OnAuthFail) onAuthFail(): void { - console.log('Authorization failed'); this.snackBar.open("Упс! Перевірте з'єднання", '', { duration: 5000, panelClass: ['red-snackbar'], diff --git a/src/app/shared/store/user.state.ts b/src/app/shared/store/user.state.ts index 53d329daaf..c629b417c5 100644 --- a/src/app/shared/store/user.state.ts +++ b/src/app/shared/store/user.state.ts @@ -374,7 +374,6 @@ export class UserState { { id, parameters }: GetApplicationsByProviderId ): Observable { patchState({ isLoading: true }); - console.log(parameters); return this.applicationService .getApplicationsByProviderId(id, parameters) @@ -467,7 +466,6 @@ export class UserState { ): void { const message = Util.getWorkshopMessage(payload); patchState({ isLoading: false }); - console.log('Workshop is created', payload); dispatch([ new MarkFormDirty(false), new ShowMessageBar({ message: message.text, type: message.type }), @@ -491,7 +489,6 @@ export class UserState { @Action(OnDeleteWorkshopSuccess) onDeleteWorkshopSuccess({ dispatch }: StateContext, { payload }: OnDeleteWorkshopSuccess): void { - console.log('Workshop is deleted', payload); dispatch([ new ShowMessageBar({ message: `Дякуємо! Гурток "${payload.title}" видалено!`, @@ -517,7 +514,6 @@ export class UserState { @Action(OnCreateChildrenSuccess) onCreateChildrenSuccess({ dispatch }: StateContext, { payload }: OnCreateChildrenSuccess): void { - console.log('Child is created', payload); dispatch([ new ShowMessageBar({ message: 'Дякуємо! Дитина була успішно додана.', @@ -550,7 +546,6 @@ export class UserState { @Action(OnCreateProviderSuccess) onCreateProviderSuccess({ dispatch }: StateContext, { payload }: OnCreateProviderSuccess): void { dispatch(new GetProfile()).subscribe(() => this.router.navigate([''])); - console.log('Provider is created', payload); dispatch([ new ShowMessageBar({ message: 'Організацію успішно створено', @@ -672,7 +667,6 @@ export class UserState { { dispatch }: StateContext, { payload }: OnCreateAchievementSuccess ): void { - console.log('Achievement is created', payload); dispatch([new ShowMessageBar({ message: 'Новe Досягнення додано!', type: 'success' }), new MarkFormDirty(false)]); this.router.navigate(['/details/workshop/', payload.workshopId]); } @@ -711,7 +705,6 @@ export class UserState { { dispatch }: StateContext, { payload }: OnCreateApplicationSuccess ): void { - console.log('Application is created', payload); dispatch([new ShowMessageBar({ message: 'Заявку створено!', type: 'success' }), new MarkFormDirty(false)]); this.router.navigate(['']); } @@ -742,7 +735,6 @@ export class UserState { { dispatch }: StateContext, { payload }: OnDeleteAchievementSuccess ): void { - console.log('Child is deleted', payload); dispatch([ new ShowMessageBar({ message: 'Досягнення видалено!', type: 'success' }), new GetUsersChildren(), @@ -758,7 +750,6 @@ export class UserState { @Action(OnDeleteChildSuccess) onDeleteChildSuccess({ dispatch }: StateContext, { payload }: OnDeleteChildSuccess): void { - console.log('Child is deleted', payload); dispatch([new ShowMessageBar({ message: 'Дитину видалено!', type: 'success' }), new GetUsersChildren()]); } @@ -812,14 +803,12 @@ export class UserState { @Action(OnUpdateWorkshopSuccess) onUpdateWorkshopSuccess({ dispatch }: StateContext, { payload }: OnUpdateWorkshopSuccess): void { const message = Util.getWorkshopMessage(payload); - console.log('Workshop is updated', payload); dispatch([new MarkFormDirty(false), new ShowMessageBar({ message: message.text, type: message.type })]); this.router.navigate(['/personal-cabinet/provider/workshops']); } @Action(OnUpdateChildSuccess) onUpdateChildSuccess({ dispatch }: StateContext, { payload }: OnUpdateChildSuccess): void { - console.log('Child is updated', payload); dispatch([ new MarkFormDirty(false), new ShowMessageBar({ @@ -851,7 +840,6 @@ export class UserState { @Action(OnUpdateProviderSuccess) onUpdateProviderSuccess({ dispatch }: StateContext, { payload }: OnUpdateProviderSuccess): void { dispatch(new MarkFormDirty(false)); - console.log('Provider is updated', payload); dispatch([ new ShowMessageBar({ message: 'Організація успішно відредагована', @@ -947,7 +935,6 @@ export class UserState { @Action(OnCreateRatingSuccess) onCreateRatingSuccess({ dispatch }: StateContext, { payload }: OnCreateRatingSuccess): void { - console.log('Rate is created', payload); dispatch( new ShowMessageBar({ message: 'Оцінка успішно поставлена!', @@ -1040,7 +1027,6 @@ export class UserState { new MarkFormDirty(false), new ShowMessageBar({ message: 'Користувач успішно заблокований', type: 'success' }), ]); - console.log('parent is blocked', payload); } @Action(UnBlockParent) @@ -1071,7 +1057,6 @@ export class UserState { new MarkFormDirty(false), new ShowMessageBar({ message: 'Користувач успішно розблокований', type: 'success' }), ]); - console.log('parent is unBlocked', payload); } @Action(GetBlockedParents) diff --git a/src/main.ts b/src/main.ts index 13546554ae..59758a943a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -4,7 +4,6 @@ import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; if (environment.production) { - window.console.log = () => {}; enableProdMode(); }