Only the "show/hide options" button should be hidden

We added this line in order to make the sidebar show/hide behavior
the same as the new VisualEditor template dialog, but it should have
only affected this one button.  When additional actions are added,
such as Citoid's "change reference type" button, these should still
be available.

Bug: T293280
Change-Id: I6b2c716fff991781e36ba21b541ea2ff918cfeb3
This commit is contained in:
Adam Wight 2021-10-15 13:42:48 +02:00
parent 30cfb7c05a
commit 53d055d1e4

View file

@ -44,7 +44,9 @@ ve.ui.MWCitationDialog.prototype.autoExpandSidebar = function () {
ve.ui.MWCitationDialog.super.prototype.autoExpandSidebar.call( this );
if ( !this.useInlineDescriptions && !this.useNewSidebar && !this.isSidebarExpanded ) {
this.$otherActions.toggleClass( 'oo-ui-element-hidden', true );
this.actions.forEach( { actions: [ 'mode' ] }, function ( action ) {
action.toggle( false );
} );
}
};