add icon to show admin/customer custom-notes in overview

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-09-01 15:44:38 +02:00
parent 754b56aba0
commit a7454b00b4
5 changed files with 31 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
*/
use Froxlor\UI\Callbacks\Admin;
use Froxlor\UI\Callbacks\Customer;
use Froxlor\UI\Callbacks\Impersonate;
use Froxlor\UI\Callbacks\ProgressBar;
use Froxlor\UI\Callbacks\Style;
@@ -112,6 +113,12 @@ return [
'deactivated',
]),
'actions' => [
'show' => [
'icon' => 'fa fa-eye',
'title' => lng('usersettings.custom_notes.title'),
'modal' => [Text::class, 'customerNoteDetailModal'],
'visible' => [Customer::class, 'hasNote']
],
'edit' => [
'icon' => 'fa fa-edit',
'title' => lng('panel.edit'),

View File

@@ -153,6 +153,12 @@ return [
'c.traffic',
]),
'actions' => [
'show' => [
'icon' => 'fa fa-eye',
'title' => lng('usersettings.custom_notes.title'),
'modal' => [Text::class, 'customerNoteDetailModal'],
'visible' => [Customer::class, 'hasNote']
],
'unlock' => [
'icon' => 'fa fa-unlock',
'title' => lng('panel.unlock'),