From b5b335a2cad4c986e0e6a380635721a0365fff4a Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 26 Apr 2023 14:41:19 -0700 Subject: [PATCH] Use the asset tag instead of asset name if no name is given Signed-off-by: snipe --- resources/views/partials/bootstrap-table.blade.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 21a4f29349..3e6a9ea3b0 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -269,12 +269,19 @@ } if ((row.available_actions) && (row.available_actions.delete === true)) { + + // use the asset tag if no name is provided + var name_for_box = row.name + if (row.name=='') { + var name_for_box = row.asset_tag + } + actions += '' - + 'Delete '; + + '{{ trans('general.delete') }} '; } else { actions += ' '; }