Hide group selector when editing a subref

Since changing the group will break a subref, we'll hide the field
for now.

TODO: There's more that can be done here: the main ref group
selector could also be hidden, and changing group could be supported
if we change the group on all linked refs.

Bug: T375156
Change-Id: I220850edae58097e09616a4b100878513767deae
This commit is contained in:
Adam Wight 2024-10-02 12:16:13 +02:00
parent c5539052b9
commit 9d665a8521

View file

@ -240,6 +240,8 @@ ve.ui.MWReferenceEditPanel.prototype.getReferenceFromEditing = function () {
ve.ui.MWReferenceEditPanel.prototype.setFormFieldsFromRef = function ( ref ) {
this.referenceTarget.setDocument( ref.getDocument() );
this.optionsFieldset.toggle( !ref.extendsRef );
this.originalGroup = ref.getGroup();
// Set the group input while it's disabled, so this doesn't pop up the group-picker menu