use the correct translation for cancellations

* Some languages have different words for cancelling an action vs
  cancelling an invoice.
This commit is contained in:
novag
2023-01-14 10:48:25 +01:00
committed by Hendrik Hagendorn
parent 8a5eeea642
commit fc52a2456c
5 changed files with 8 additions and 4 deletions

View File

@ -614,7 +614,7 @@ class Document extends Model
if (! in_array($this->status, ['cancelled', 'draft'])) {
try {
$actions[] = [
'title' => trans('general.cancel'),
'title' => trans('documents.actions.cancel'),
'icon' => 'cancel',
'url' => route($prefix . '.cancelled', $this->id),
'permission' => 'update-' . $group . '-' . $permission_prefix,