Merge "Hide label section in MagicLinkNodeContextItem"

This commit is contained in:
jenkins-bot 2019-02-25 22:52:01 +00:00 committed by Gerrit Code Review
commit 34e8aef6e4

View file

@ -52,6 +52,15 @@ ve.ui.MWMagicLinkNodeContextItem.prototype.getDescription = function () {
return this.model.getAttribute( 'content' );
};
/**
* @inheritdoc
*/
ve.ui.MWMagicLinkNodeContextItem.prototype.renderBody = function () {
// Parent method
ve.ui.MWMagicLinkNodeContextItem.super.prototype.renderBody.apply( this, arguments );
this.$labelLayout.remove();
};
/* Registration */
ve.ui.contextItemFactory.register( ve.ui.MWMagicLinkNodeContextItem );