FIX: Display first notification spotlight only once each page load.
This commit is contained in:
parent
63d9d4f301
commit
68f9c7142f
|
@ -20,6 +20,8 @@ const dropdown = {
|
|||
}
|
||||
};
|
||||
|
||||
let hideRingBackdrop = false;
|
||||
|
||||
createWidget('header-notifications', {
|
||||
settings: {
|
||||
avatarSize: 'medium'
|
||||
|
@ -44,7 +46,10 @@ createWidget('header-notifications', {
|
|||
if (!!unreadPMs) {
|
||||
if (!currentUser.get('read_first_notification')) {
|
||||
contents.push(h('span.ring'));
|
||||
contents.push(h('span.ring-backdrop'));
|
||||
if (!attrs.active && !hideRingBackdrop) {
|
||||
contents.push(h('span.ring-backdrop'));
|
||||
hideRingBackdrop = true;
|
||||
}
|
||||
};
|
||||
|
||||
contents.push(this.attach('link', { action: attrs.action,
|
||||
|
|
Loading…
Reference in New Issue