Fixes incorrect transition from searched image preview to upload panel

This line was introduced by If59979f.

This action is only invoked from the 'safe' action when the dialog mode
is 'info' - uploads are under 'upload-info' instead - so I believe we
shouldn't end up here from an upload and whatever condition this was
guarding against is no longer a concern.

Bug: T362015
Change-Id: I6a6551eab3fb698a6ae781be4623b48e4b4c7edb
This commit is contained in:
Zoë 2024-05-09 17:16:28 +01:00
parent 70c2179025
commit 220088e13e

View file

@ -1394,10 +1394,6 @@ ve.ui.MWMediaDialog.prototype.getActionProcess = function ( action ) {
case 'cancelchoose':
handler = function () {
this.switchPanels( 'search' );
if ( this.mediaUploadBooklet ) {
// Reset upload booklet, in case we got here by uploading a file
return this.mediaUploadBooklet.initialize();
}
};
ve.track( 'activity.' + this.constructor.static.name, {
action: 'search-change-image'