mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "ArticleTarget: set local config to hide welcome dialog"
This commit is contained in:
commit
1bfe56ddb0
|
@ -362,6 +362,7 @@ ve.init.mw.DesktopArticleTarget.prototype.loadSuccess = function () {
|
|||
}
|
||||
} else {
|
||||
new mw.Api().saveOption( 'visualeditor-hidebetawelcome', '1' );
|
||||
mw.user.options.set( 'visualeditor-hidebetawelcome', '1' );
|
||||
}
|
||||
this.suppressNormalStartupDialogs = true;
|
||||
}
|
||||
|
|
|
@ -2159,6 +2159,7 @@ ve.init.mw.ArticleTarget.prototype.maybeShowWelcomeDialog = function () {
|
|||
|
||||
if ( prefSaysShow ) {
|
||||
new mw.Api().saveOption( 'visualeditor-hidebetawelcome', '1' );
|
||||
mw.user.options.set( 'visualeditor-hidebetawelcome', '1' );
|
||||
|
||||
// No need to set a cookie every time for logged-in users that have already
|
||||
// set the hidebetawelcome=1 preference, but only if this isn't a one-off
|
||||
|
|
Loading…
Reference in a new issue