Skip to content

Commit

Permalink
FIX Fix button layout display icons
Browse files Browse the repository at this point in the history
  • Loading branch information
satrun77 committed Jan 25, 2024
1 parent 5a92434 commit 21862c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/Extensions/WorkflowApplicable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
<h4>$Title</h4>

<div class="workflow-field-action-buttons btn-group">
<a class="btn btn-outline-secondary workflow-field-open-dialog<% if $canEdit %><% else %> workflow-field-action-disabled<% end_if %>" href="$Top.ActionLink('item',$ID,'edit')" data-icon="pencil">
<a class="btn btn-outline-secondary workflow-field-open-dialog<% if $canEdit %><% else %> workflow-field-action-disabled<% end_if %>" href="$Top.ActionLink('item',$ID,'edit')">
<%t WorkflowField.EditAction "Edit" %>
</a>
<a class="btn btn-outline-secondary workflow-field-open-dialog <% if $canAddTransition %><% else %> workflow-field-action-disabled<% end_if %>" href="$Top.TransitionLink('new',$ID,'edit')" data-icon="chain--arrow">
<a class="btn btn-outline-secondary workflow-field-open-dialog <% if $canAddTransition %><% else %> workflow-field-action-disabled<% end_if %>" href="$Top.TransitionLink('new',$ID,'edit')">
<%t WorkflowField.AddTransitionAction "Add Transition" %>
</a>
<a href="$Top.ActionLink('item',$ID,'delete')" data-securityid="$SecurityID" class="btn btn-outline-secondary workflow-field-delete<% if $canDelete %><% else %> workflow-field-action-disabled<% end_if %>" data-icon="cross-circle">
<a href="$Top.ActionLink('item',$ID,'delete')" data-securityid="$SecurityID" class="btn btn-outline-secondary workflow-field-delete<% if $canDelete %><% else %> workflow-field-action-disabled<% end_if %>">
<%t WorkflowField.DeleteAction "Delete" %>
</a>
</div>
Expand Down

0 comments on commit 21862c6

Please sign in to comment.