Skip to content
Merged
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
Next Next commit
fix: refresh active entry on edit actions #481
  • Loading branch information
Angeluz-07 committed Aug 3, 2020
commit c5ec31c6ab59d19565ee2c075f89f0b116faf33e
3 changes: 3 additions & 0 deletions src/app/modules/time-entries/pages/time-entries.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class TimeEntriesComponent implements OnInit, OnDestroy {
)
)
).subscribe((action) => {
this.loadActiveEntry();
this.store.dispatch(new entryActions.LoadEntries(new Date().getMonth() + 1));
});
}
Expand Down Expand Up @@ -126,6 +127,8 @@ export class TimeEntriesComponent implements OnInit, OnDestroy {
this.store.pipe(select(getActiveTimeEntry)).subscribe((activeTimeEntry) => {
if (activeTimeEntry) {
this.activeTimeEntry = activeTimeEntry;
} else {
this.activeTimeEntry = null;
}
});
}
Expand Down