mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Meta dialog: Use window action to open windows
Because abstraction. Change-Id: I9811db4380c6cf37a73a76b97c8439f94723c5a6
This commit is contained in:
parent
acc2347eee
commit
15a47665c8
|
@ -1304,7 +1304,8 @@ ve.init.mw.DesktopArticleTarget.prototype.maybeShowWelcomeDialog = function () {
|
|||
* Show the meta dialog as needed on load.
|
||||
*/
|
||||
ve.init.mw.DesktopArticleTarget.prototype.maybeShowMetaDialog = function () {
|
||||
var target = this;
|
||||
var windowAction,
|
||||
target = this;
|
||||
|
||||
this.welcomeDialogPromise
|
||||
.always( function () {
|
||||
|
@ -1313,10 +1314,9 @@ ve.init.mw.DesktopArticleTarget.prototype.maybeShowMetaDialog = function () {
|
|||
} );
|
||||
|
||||
if ( this.getSurface().getModel().metaList.getItemsInGroup( 'mwRedirect' ).length ) {
|
||||
this.getSurface().getDialogs().openWindow( 'meta', {
|
||||
page: 'settings',
|
||||
fragment: this.getSurface().getModel().getFragment()
|
||||
} );
|
||||
windowAction = ve.ui.actionFactory.create( 'window', this.getSurface() );
|
||||
|
||||
windowAction.open( 'meta', { page: 'settings' } );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue