From 5e3b9b0f246a7fb5cf7d4314d620f398f7fb4b65 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 431819ce..1ac12431 100644 --- a/src/Extensions/WorkflowApplicable.php +++ b/src/Extensions/WorkflowApplicable.php @@ -256,7 +256,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" %>