Skip to content

fix notification removed when not found #311

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

Merged
merged 1 commit into from
Sep 9, 2016

Conversation

vkrizan
Copy link
Contributor

@vkrizan vkrizan commented Sep 9, 2016

When a notification is closed, prior to timouting, from $rootScope (e.g.
from handleClose), then the timeout closes the wrong notification. This is because
notification is by the timeouting removed completely from list and the
.indexOf returns -1, which removes last notification.

There is a possibility that if same notification (with same data) is created between handleClose and timeout close, then it would be closed earlier by the first notification's timeout. Better solution would be to track timeouts and remove them with a notification removal.

When a notification is closed, prior to timouting, from $rootScope (e.g.
from handleClose), then the timeout closes the wrong notification. This is because
notification is by the timeouting removed completely from list and the
`.indexOf` returns `-1`, which removes last notification.
@vkrizan vkrizan force-pushed the notification-timeout-remove branch from 6565686 to a47d4b2 Compare September 9, 2016 13:59
@jeff-phillips-18
Copy link
Member

LGTM

1 similar comment
@dtaylor113
Copy link
Member

LGTM

@dtaylor113 dtaylor113 merged commit 335e400 into patternfly:master Sep 9, 2016
jeff-phillips-18 added a commit to jeff-phillips-18/manageiq-ui-service that referenced this pull request Sep 15, 2016
Specifically looking for:

Fix specificity on setting collapsed items width for vertical nav: Adds
specificity to vertical navigations settings to set the width for
collapsed items to only effect those in vertical navigation.
patternfly/patternfly#454

Fix to hide badges on the primary nav menu in collapse mode.
patternfly/patternfly#449

Fixes an issue where if a notification is removed while the toast
notification is still displayed, the wrong toast notification could get
removed. patternfly/angular-patternfly#311
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants