Skip to content

A free open source IT asset/license management system

Places a text indicating that the file is empty and display it as an info text

Ivan Nieto Vivanco49f6eef9df43
diff --git a/resources/views/livewire/importer.blade.php b/resources/views/livewire/importer.blade.php
index 6a7e02e617..c134718429 100644
--- a/resources/views/livewire/importer.blade.php
+++ b/resources/views/livewire/importer.blade.php
@@ -239,6 +239,11 @@
<div class="col-md-5">
<p class="form-control-static">{{ str_limit($activeFile->first_row[$index], 50, '...') }}</p>
</div>
+ @else
+ @php
+ $statusText = trans('general.empty_file');
+ $statusType = 'info';
+ @endphp
@endif
</div><!-- /div row -->
@endforeach