From f484336a4ee64625786e13db042a8b4a2279c574 Mon Sep 17 00:00:00 2001 From: Mohamed Alsharaf Date: Thu, 25 Jan 2024 16:32:04 +1300 Subject: [PATCH] FIX Button layout that display icons Related issue https://github.com/silverstripe/silverstripe-cms/issues/2885 --- src/Extensions/WorkflowApplicable.php | 1 - .../Symbiote/AdvancedWorkflow/FormFields/WorkflowField.ss | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Extensions/WorkflowApplicable.php b/src/Extensions/WorkflowApplicable.php index 0b6469ce..0722ebd4 100644 --- a/src/Extensions/WorkflowApplicable.php +++ b/src/Extensions/WorkflowApplicable.php @@ -261,7 +261,6 @@ public function updateCMSActions(FieldList $actions) // and will be displayed as a major action. if (!$addedFirst) { $addedFirst = true; - $action->setAttribute('data-icon', 'navigation'); $majorActions = $actions->fieldByName('MajorActions'); $majorActions ? $majorActions->push($action) : $actions->push($action); } else { diff --git a/templates/Symbiote/AdvancedWorkflow/FormFields/WorkflowField.ss b/templates/Symbiote/AdvancedWorkflow/FormFields/WorkflowField.ss index b20a8646..62006aff 100644 --- a/templates/Symbiote/AdvancedWorkflow/FormFields/WorkflowField.ss +++ b/templates/Symbiote/AdvancedWorkflow/FormFields/WorkflowField.ss @@ -30,13 +30,13 @@

$Title

- + <%t WorkflowField.EditAction "Edit" %> - + <%t WorkflowField.AddTransitionAction "Add Transition" %> - + <%t WorkflowField.DeleteAction "Delete" %>