alexcrack / alexcrack/angular-ui-notification

Notificiation appears when comeback to the browser

未关闭
#122 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
529
派生
164
PR 合并指标
30 天内没有已合并 PR

描述

HI
I have timer to get data from server in evrey second
if the request is fail i generate error notif and when one of the request is ok i use . "clearAll()" . functon to remove the error message.

the problem is when the notification was in the background and im not on the page , and the connection lost and and comeback and I m still on othe page when I come back to the page I got the error message for second and then clear all again . .. event the connection is good for a while.

how can I make sure that will not happen

in error I call to . Notification.error and change the flag to true
and in success i use clearAll . and change the flag .

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。