Merge "Replacing instances of toast.show() with mw.notify()"

This commit is contained in:
jenkins-bot 2020-05-13 14:37:50 +00:00 committed by Gerrit Code Review
commit 47fb85da1d

View file

@ -90,7 +90,7 @@ module.exports = function () {
if ( $primaryBtn.attr( 'href' ) || $primaryBtn.find( 'a' ).length ) {
router.navigate( '/languages' );
} else {
toast.show( mw.msg( 'mobile-frontend-languages-not-available' ) );
mw.notify( mw.msg( 'mobile-frontend-languages-not-available' ) );
}
} );
}
@ -253,7 +253,7 @@ module.exports = function () {
function initSmartLogout( selector ) {
// Turn logout to a POST action
$( selector ).on( 'click', function ( e ) {
toast.show(
mw.notify(
mw.message( 'logging-out-notify' ).text(), {
tag: 'logout',
autoHide: false