Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
FIX: TTA-206 validate if there is a time entry running
  • Loading branch information
Abigail Cabascango committed Nov 1, 2022
commit 9783d05281e5af42ce9df8a9af2bdfe05e6b3616
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@ export class ProjectListHoverComponent implements OnInit, OnDestroy {
this.store.pipe(select(getTimeEntriesDataSource)).subscribe(ds => {
this.canMarkEntryAsWIP = !this.isThereAnEntryRunning(ds.data);
});
this.store.dispatch(new entryActions.ClockIn(entry));
this.projectsForm.setValue({ project_id: `${customerName} - ${name}` });
setTimeout(() => {
this.store.dispatch(new actions.LoadRecentProjects());
}, 2000);
if ( this.canMarkEntryAsWIP){
this.store.dispatch(new entryActions.ClockIn(entry));
this.projectsForm.setValue({ project_id: `${customerName} - ${name}` });
setTimeout(() => {
this.store.dispatch(new actions.LoadRecentProjects());
}, 2000);
}
}

getEntryRunning(entries: Entry[]) {
Expand Down