Add a tag to mw.notify

This prevent multiple notifications for the same message.

Change-Id: I6487852350497a48e1710fb04d3af01fc5c18116
This commit is contained in:
Fomafix 2024-08-27 13:03:10 +00:00
parent a67cadbc91
commit 8a78d01763

View file

@ -95,7 +95,9 @@ module.exports = function () {
if ( $primaryBtn.attr( 'href' ) || $primaryBtn.find( 'a' ).length ) { if ( $primaryBtn.attr( 'href' ) || $primaryBtn.find( 'a' ).length ) {
router.navigate( '/languages' ); router.navigate( '/languages' );
} else { } else {
mw.notify( mw.msg( 'mobile-frontend-languages-not-available' ) ); mw.notify( mw.msg( 'mobile-frontend-languages-not-available' ), {
tag: 'languages-not-available'
} );
} }
} ); } );
} }