From 4b51e604a75b167b0aa117095b5b9327d80d0ece Mon Sep 17 00:00:00 2001 From: Alex M Date: Sat, 24 Sep 2016 20:43:35 +0300 Subject: [PATCH] [Edit] Switch other edit actions to mct-control --- platform/commonUI/edit/bundle.js | 4 +++- .../edit/res/templates/edit-action-buttons.html | 13 +++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/platform/commonUI/edit/bundle.js b/platform/commonUI/edit/bundle.js index 60da900176..1094abb864 100644 --- a/platform/commonUI/edit/bundle.js +++ b/platform/commonUI/edit/bundle.js @@ -245,7 +245,9 @@ define([ "key": "cancel", "category": "conclude-editing", "implementation": CancelAction, - "name": "Cancel", + // Because we use the name as label for edit buttons and mct-control buttons need + // the label to be set to undefined in order to not apply the labeled CSS rule. + "name": undefined, "cssclass": "icon-x no-label", "description": "Discard changes made to these objects.", "depends": [] diff --git a/platform/commonUI/edit/res/templates/edit-action-buttons.html b/platform/commonUI/edit/res/templates/edit-action-buttons.html index 4bc020612f..7c1017992a 100644 --- a/platform/commonUI/edit/res/templates/edit-action-buttons.html +++ b/platform/commonUI/edit/res/templates/edit-action-buttons.html @@ -42,11 +42,12 @@ - - {{currentAction.getMetadata().name}} - + + \ No newline at end of file