Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCHR-3734: Update Task Badge when tasks are completed from SSP #2635

Conversation

deb1990
Copy link
Contributor

@deb1990 deb1990 commented May 30, 2018

Overview

This PR fixes the following problem
"Tasks count on menu does not get updated when Task is marked as complete"

Before

before

After

after

Technical Details

  1. In notification-badge.component added a listener to update the count when related data has changed from non-angular context(Where pub-sub is not not available.)
    document.addEventListener(vm.refreshCountEventName, fetchCount);

The event is fired from https://github.com/compucorp/civihr-employee-portal/pull/469/files#diff-7d3b0cd4b2fd128befb8eb370c89d6acR195

Note: The event subscription code was written previously but I forgot to push the code for this repository but in the civihr-employee-portal repository the code was already merged.

@deb1990 deb1990 changed the title PCHR-3714: Update Task Badge when tasks are completed from SSP PCHR-3734: Update Task Badge when tasks are completed from SSP May 30, 2018
@deb1990 deb1990 force-pushed the PCHR-3734-refresh-tasks-notification-count branch from 15e24c3 to 909e4ac Compare May 30, 2018 07:48
@deb1990 deb1990 merged commit f966cae into PCHR-3673-count-of-assigned-task-document May 30, 2018
@deb1990 deb1990 deleted the PCHR-3734-refresh-tasks-notification-count branch May 30, 2018 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants