fixed document table action issue..
This commit is contained in:
parent
7b4a9c711c
commit
799fc642c2
@ -542,22 +542,8 @@ class Document extends Model
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
} catch (\Exception $e) {}
|
} catch (\Exception $e) {}
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
$actions[] = [
|
|
||||||
'title' => trans('general.print'),
|
|
||||||
'icon' => 'print',
|
|
||||||
'url' => route($prefix . '.print', $this->id),
|
|
||||||
'permission' => 'read-' . $group . '-' . $permission_prefix,
|
|
||||||
'attributes' => [
|
|
||||||
'id' => 'index-line-actions-print-' . $this->type . '-' . $this->id,
|
|
||||||
'target' => '_blank',
|
|
||||||
],
|
|
||||||
];
|
|
||||||
} catch (\Exception $e) {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($actions[1]['icon'] != 'print') && ($actions[2]['icon'] != 'print')) {
|
|
||||||
try {
|
try {
|
||||||
$actions[] = [
|
$actions[] = [
|
||||||
'title' => trans('general.print'),
|
'title' => trans('general.print'),
|
||||||
@ -570,7 +556,6 @@ class Document extends Model
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
} catch (\Exception $e) {}
|
} catch (\Exception $e) {}
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$actions[] = [
|
$actions[] = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user