Skip to content

Commit a637d55

Browse files
committed
fix: #243 creating a place where messages are hold
1 parent a0bf902 commit a637d55

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/modules/shared/messages.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const INFO_SAVED_SUCCESSFULLY = 'The data has been saved successfully';
2+
export const INFO_DELETE_SUCCESSFULLY = 'The data has been deleted successfully';
3+
export const UNEXPECTED_ERROR = 'An unexpected error happened, please try again later';

src/app/modules/time-clock/pages/time-clock.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { Store, select } from '@ngrx/store';
55
import { Component, OnInit } from '@angular/core';
66
import { AzureAdB2CService } from '../../login/services/azure.ad.b2c.service';
77
import { Subscription } from 'rxjs';
8-
import { ToastrService } from 'ngx-toastr';
98

109
@Component({
1110
selector: 'app-time-clock',
@@ -18,8 +17,7 @@ export class TimeClockComponent implements OnInit {
1817
activeTimeEntry: Entry;
1918
actionsSubscription: Subscription;
2019

21-
constructor(private azureAdB2CService: AzureAdB2CService, private store: Store<Entry>,
22-
private toastr: ToastrService) {
20+
constructor(private azureAdB2CService: AzureAdB2CService, private store: Store<Entry>) {
2321
}
2422

2523
ngOnInit() {
@@ -37,6 +35,5 @@ export class TimeClockComponent implements OnInit {
3735
clockOut() {
3836
this.store.dispatch(new StopTimeEntryRunning(this.activeTimeEntry.id));
3937
this.areFieldsVisible = false;
40-
this.toastr.success('You clocked-out successfully');
4138
}
4239
}

0 commit comments

Comments
 (0)