From 6a26905d878d6890deb1138b821328ea6f3027c6 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Mon, 2 Dec 2024 15:24:50 +0000 Subject: [PATCH] MWTransclusionDialog: Remove unnecessary empty label hack The blocking task was resolved 7 years ago... Change-Id: I4853af45f6ea210be9478fd1deac8efb13e47877 --- modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js index e8da793c03..a48bfa18c4 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWTransclusionDialog.js @@ -44,10 +44,8 @@ ve.ui.MWTransclusionDialog.static.actions = [ ...ve.ui.MWTemplateDialog.static.actions, { action: 'mode', - modes: [ 'edit', 'insert' ], - // HACK: Will be set later, but we want measurements to be accurate in the mean time, this - // will not be needed when T93290 is resolved - label: $( document.createTextNode( '\u00a0' ) ) + // label is set by updateModeActionState + modes: [ 'edit', 'insert' ] }, { action: 'back',