From ffc1266d0ed39fa0bf44f6f3280f109653b9123a Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 22 Nov 2023 17:41:06 +0000 Subject: [PATCH] =?UTF-8?q?UI=20fix=20-=20don=E2=80=99t=20show=20the=20tra?= =?UTF-8?q?sh=20can=20icon=20on=20things=20that=20can=20be=20restored?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: snipe --- resources/views/partials/bootstrap-table.blade.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 0122096f80..74abfa24b2 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -279,7 +279,11 @@ + ' data-title="{{ trans('general.delete') }}" onClick="return false;">' + '{{ trans('general.delete') }} '; } else { - actions += ' '; + // Do not show the delete button on things that are already deleted + if ((row.available_actions) && (row.available_actions.restore != true)) { + actions += ' '; + } + }