Phoenix303 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/188033

Change subject: Fixed CPB flyout notification count
......................................................................

Fixed CPB flyout notification count

Bug: T67178
Change-Id: I7f4e34f2c1808b249db010018dd1b49a8dde246a
---
M modules/overlay/ext.echo.overlay.js
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/33/188033/1

diff --git a/modules/overlay/ext.echo.overlay.js 
b/modules/overlay/ext.echo.overlay.js
index e2c2c20..7f3d297 100644
--- a/modules/overlay/ext.echo.overlay.js
+++ b/modules/overlay/ext.echo.overlay.js
@@ -214,8 +214,10 @@
 
                        if ( rawCount !== '0' && rawCount !== 0 ) {
                                $badge.addClass( 'mw-echo-unread-notifications' 
);
+                               
$('#pt-notifications-flyout').find('span').text(newCount);
                        } else {
                                $badge.removeClass( 
'mw-echo-unread-notifications' );
+                               
$('#pt-notifications-flyout').find('span').remove();
                        }
                        this.notificationCount.unread = newCount;
                        this.notificationCount.unreadRaw = rawCount;

-- 
To view, visit https://gerrit.wikimedia.org/r/188033
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7f4e34f2c1808b249db010018dd1b49a8dde246a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Phoenix303 <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to