mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-23 16:06:53 +00:00
Stop comment-not-found notification always showing when requestedSince
`TEST && false || true` is always true regardless of `TEST`, we want `TEST && (false || true)` instead. Bug: T353568 Change-Id: I72fa6b87f43a9d8439883dfedc35fe82974b35de
This commit is contained in:
parent
70bd4e8f0e
commit
95121b7364
|
@ -666,7 +666,7 @@ function init( $container, state ) {
|
|||
}
|
||||
} );
|
||||
}
|
||||
if ( highlightResult.highlighted.length === 0 && highlightResult.requested.length > 1 || highlightResult.requestedSince ) {
|
||||
if ( highlightResult.highlighted.length === 0 && ( highlightResult.requested.length > 1 || highlightResult.requestedSince ) ) {
|
||||
dismissableNotificationPromise = mw.loader.using( 'mediawiki.notification' ).then( function () {
|
||||
return mw.notification.notify(
|
||||
mw.message( 'discussiontools-target-comments-missing' ).text(),
|
||||
|
|
Loading…
Reference in a new issue