Skip to content

Commit

Permalink
support getDeleteButtonTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Jan 13, 2022
1 parent f3e798a commit 6ecba31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/SoftDeletable.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ public function updateCMSActions(FieldList $actions)
$softDelete->addExtraClass('btn-hide-outline');
$softDelete->addExtraClass('font-icon-trash-bin');
$actions->push($softDelete);
if ($this->owner->hasMethod('getDeleteButtonTitle')) {
$softDelete->setTitle($this->owner->getDeleteButtonTitle());
}
}
}

Expand Down

0 comments on commit 6ecba31

Please sign in to comment.