Merge pull request #11484 from mikeroq/fixes/delete_file_modal_on_licenses

Fixes license file(s) delete modal showing entire model data instead of just the name
This commit is contained in:
snipe 2022-07-10 13:23:03 -07:00 committed by GitHub
commit 78d5c37267
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -503,7 +503,7 @@
</td>
<td>{{ $file->created_at }}</td>
<td>
<a class="btn delete-asset btn-danger btn-sm" href="{{ route('delete/licensefile', [$license->id, $file->id]) }}" data-content="{{ trans('general.delete_confirm', array('item' => $file)) }}" data-title="{{ trans('general.delete') }} {{ $file->filename }}?">
<a class="btn delete-asset btn-danger btn-sm" href="{{ route('delete/licensefile', [$license->id, $file->id]) }}" data-content="{{ trans('general.delete_confirm', ['item' => $file->filename]) }}" data-title="{{ trans('general.delete') }}">
<i class="fas fa-trash icon-white" aria-hidden="true"></i>
<span class="sr-only">{{ trans('general.delete') }}</span>
</a>
@ -575,5 +575,4 @@
@section('moar_scripts')
@include ('partials.bootstrap-table')
@stop
@stop