Merge "DesktopArticleTarget.init: only show welcome dialog if page editable"

This commit is contained in:
jenkins-bot 2017-07-13 18:11:46 +00:00 committed by Gerrit Code Review
commit 1b6cc864b3

View file

@ -1043,6 +1043,7 @@
welcomeDialogLocalStorageValue = localStorage.getItem( 've-beta-welcome-dialog' );
} catch ( e ) {}
if (
pageCanLoadEditor &&
showWikitextWelcome &&
mw.config.get( 'wgVisualEditorConfig' ).showBetaWelcome &&
[ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 &&