Skip to content

Commit

Permalink
Merge pull request #1 from dnadesign/bugfix/cancel-button-font-icon
Browse files Browse the repository at this point in the history
FIX address cancel button icon issue
  • Loading branch information
jules0x authored Aug 7, 2024
2 parents b778735 + 0e07562 commit f1f37ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Extensions/Page_ObjectWorkflowApplicationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public function updateCMSActions(FieldList $actions)

Requirements::javascript('symbiote/silverstripe-advancedworkflow:client/dist/js/CancelButton.js');
$action = FormAction::create('cancelworkflow', 'Cancel Workflow')
->setUseButtonTag(true)->setAttribute('data-icon', 'navigation');
->setUseButtonTag(true)
->addExtraClass('font-icon-cancel');

if ($actions->fieldByName('MajorActions')) {
$actions->fieldByName('MajorActions')->push($action);
Expand Down

0 comments on commit f1f37ad

Please sign in to comment.