Fix saving edit mode on mobile in reply tool

When this code was added in 5feb69612f,
it was inside the `if ( this.modeTabSelect ) { … }`, because switching
was an experimental option and could have been unavailable.

Switching is always available now, but the `modeTabSelect` widget
doesn't exist in the mobile version (because switching interface is a
part of the toolbar there), so this line should be outside the `if`.

Bug: T270536
Change-Id: I7c5959281e77558bfe82bd39d38ba4dda36d590c
This commit is contained in:
Bartosz Dziewoński 2021-06-29 22:57:06 +02:00 committed by DLynch
parent 4912a1bf5c
commit 2d5af9608a

View file

@ -478,8 +478,8 @@ ReplyWidget.prototype.setup = function ( data ) {
// Make the option for the current mode disabled, to make it un-interactable
// (we override the styles to make it look as if it was selected)
this.modeTabSelect.findItemFromData( this.getMode() ).setDisabled( true );
this.saveEditMode( this.getMode() );
}
this.saveEditMode( this.getMode() );
var summary = this.storage.get( this.storagePrefix + '/summary' ) || data.editSummary;