diff options
Diffstat (limited to 'Echo/modules/ui/mw.echo.ui.BadgeLinkWidget.js')
-rw-r--r-- | Echo/modules/ui/mw.echo.ui.BadgeLinkWidget.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Echo/modules/ui/mw.echo.ui.BadgeLinkWidget.js b/Echo/modules/ui/mw.echo.ui.BadgeLinkWidget.js index 9eb67e6e..ed1cf4c5 100644 --- a/Echo/modules/ui/mw.echo.ui.BadgeLinkWidget.js +++ b/Echo/modules/ui/mw.echo.ui.BadgeLinkWidget.js @@ -1,4 +1,4 @@ -( function ( mw, $ ) { +( function () { /** * Notification badge button widget for echo popup. * @@ -35,6 +35,13 @@ if ( config.href !== undefined && OO.ui.isSafeUrl( config.href ) ) { this.$element.attr( 'href', config.href ); } + if ( this.type === 'alert' ) { + this.$element + .addClass( 'oo-ui-icon-bell' ); + } else { + this.$element + .addClass( 'oo-ui-icon-tray' ); + } }; OO.inheritClass( mw.echo.ui.BadgeLinkWidget, OO.ui.Widget ); @@ -75,4 +82,4 @@ mw.hook( 'ext.echo.badge.countChange' ).fire( this.type, this.count, convertedNumber ); } }; -}( mediaWiki, jQuery ) ); +}() ); |