mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
NotificationBadgeWidget: Don't double-convert numbers
We shouldn't run numbers through convertNumber() twice. Change-Id: If0ab0cad48761eaa1753f65e9d1557d84ec31961
This commit is contained in:
parent
506aa9d425
commit
d95b4bfaac
|
@ -240,7 +240,6 @@
|
||||||
|
|
||||||
unreadCount = this.manager.getUnreadCounter().getCount();
|
unreadCount = this.manager.getUnreadCounter().getCount();
|
||||||
cappedUnreadCount = this.manager.getUnreadCounter().getCappedNotificationCount( unreadCount );
|
cappedUnreadCount = this.manager.getUnreadCounter().getCappedNotificationCount( unreadCount );
|
||||||
cappedUnreadCount = mw.language.convertNumber( cappedUnreadCount );
|
|
||||||
badgeLabel = mw.message( 'echo-badge-count', mw.language.convertNumber( cappedUnreadCount ) ).text();
|
badgeLabel = mw.message( 'echo-badge-count', mw.language.convertNumber( cappedUnreadCount ) ).text();
|
||||||
|
|
||||||
this.badgeButton.setLabel( badgeLabel );
|
this.badgeButton.setLabel( badgeLabel );
|
||||||
|
|
Loading…
Reference in a new issue