mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 12:40:39 -08:00
Remove DL button if file doesn’t exist
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
eb1e287c15
commit
62ad3fad1c
|
@ -1213,7 +1213,7 @@
|
|||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if ($file->filename)
|
||||
@if (($file->filename) && (Storage::exists('private_uploads/assets/'.$file->filename)))
|
||||
<a href="{{ route('show/assetfile', [$asset->id, $file->id]) }}" class="btn btn-default">
|
||||
<i class="fas fa-download" aria-hidden="true"></i>
|
||||
</a>
|
||||
|
@ -1310,7 +1310,7 @@
|
|||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if ($file->filename)
|
||||
@if (($file->filename) && (Storage::exists('private_uploads/assetmodels/'.$file->filename)))
|
||||
<a href="{{ route('show/modelfile', [$asset->model->id, $file->id]) }}" class="btn btn-default">
|
||||
<i class="fas fa-download" aria-hidden="true"></i>
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue