From 345879b277aa0a7ae1e71047a4a1d8a0cc2fd472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Thu, 12 Mar 2015 19:31:01 +0100 Subject: [PATCH] ve.ui.MWLinkNodeInspector: Restore action buttons Bug: T92525 Change-Id: Id305268b76cce4e56f0e98a9d7ac4e6c571470d2 --- modules/ve-mw/ui/inspectors/ve.ui.MWLinkNodeInspector.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/ve-mw/ui/inspectors/ve.ui.MWLinkNodeInspector.js b/modules/ve-mw/ui/inspectors/ve.ui.MWLinkNodeInspector.js index 474de0fd2d..2e994194b8 100644 --- a/modules/ve-mw/ui/inspectors/ve.ui.MWLinkNodeInspector.js +++ b/modules/ve-mw/ui/inspectors/ve.ui.MWLinkNodeInspector.js @@ -38,11 +38,13 @@ ve.ui.MWLinkNodeInspector.static.modelClasses = [ ve.dm.MWNumberedExternalLinkNo ve.ui.MWLinkNodeInspector.static.actions = ve.ui.MWLinkNodeInspector.super.static.actions.concat( [ { action: 'open', - label: OO.ui.deferMsg( 'visualeditor-linkinspector-open' ) + label: OO.ui.deferMsg( 'visualeditor-linkinspector-open' ), + modes: [ 'edit', 'insert' ] }, { action: 'convert', - label: OO.ui.deferMsg( 'visualeditor-linknodeinspector-add-label' ) + label: OO.ui.deferMsg( 'visualeditor-linknodeinspector-add-label' ), + modes: [ 'edit' ] } ] );