mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-23 14:06:52 +00:00
Merge "EditCheckInspector: initially disable the continue action on mobile"
This commit is contained in:
commit
fd7194be26
|
@ -104,7 +104,11 @@ ve.ui.EditCheckInspector.prototype.initialize = function () {
|
|||
};
|
||||
|
||||
ve.ui.EditCheckInspector.prototype.updateActions = function () {
|
||||
this.answerConfirm.setDisabled( !this.answerRadioSelect.findSelectedItem() );
|
||||
const isSelected = !!this.answerRadioSelect.findSelectedItem();
|
||||
// desktop
|
||||
this.answerConfirm.setDisabled( !isSelected );
|
||||
// mobile
|
||||
this.actions.setAbilities( { continue: isSelected } );
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -127,6 +131,7 @@ ve.ui.EditCheckInspector.prototype.getReadyProcess = function ( data ) {
|
|||
return ve.ui.EditCheckInspector.super.prototype.getReadyProcess.call( this, data )
|
||||
.first( function () {
|
||||
this.actions.setMode( OO.ui.isMobile() ? 'mobile' : 'desktop' );
|
||||
this.updateActions();
|
||||
}, this );
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue