mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 06:13:54 +00:00
Merge "Replacing instances of toast.show() with mw.notify()"
This commit is contained in:
commit
47fb85da1d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue