fix: unknown image of service until it is uploaded

This commit is contained in:
Andras Bacsai
2024-02-23 10:14:13 +01:00
parent 62ae845f4b
commit 1150633fef

View File

@@ -195,7 +195,8 @@
{{ data_get($service, 'documentation') }} {{ data_get($service, 'documentation') }}
</x-slot> </x-slot>
<x-slot:upgrade> <x-slot:upgrade>
You need to upgrade Coolify to {{ data_get($service, 'minversion') }} to use this service. You need to upgrade Coolify to {{ data_get($service, 'minversion') }} to use this
service.
</x-slot> </x-slot>
</x-resource-view> </x-resource-view>
{{-- <button class="text-left cursor-not-allowed bg-coolgray-100 box-without-bg" disabled> {{-- <button class="text-left cursor-not-allowed bg-coolgray-100 box-without-bg" disabled>
@@ -215,10 +216,14 @@
@endif @endif
</x-slot> </x-slot>
<x-slot:logo> <x-slot:logo>
@if (data_get($service, 'logo')) @if (file_exists(public_path(data_get($service, 'logo'))))
<img class="w-[4.5rem] <img class="w-[4.5rem]
aspect-square h-[4.5rem] p-2 transition-all duration-200 opacity-30 grayscale group-hover:grayscale-0 group-hover:opacity-100" aspect-square h-[4.5rem] p-2 transition-all duration-200 opacity-30 grayscale group-hover:grayscale-0 group-hover:opacity-100"
src="{{ asset(data_get($service, 'logo')) }}"> src="{{ asset(data_get($service, 'logo')) }}">
@else
<img class="w-[4.5rem]
aspect-square h-[4.5rem] p-2 transition-all duration-200 opacity-30 grayscale group-hover:grayscale-0 group-hover:opacity-100"
src="{{ asset('svgs/unknown.svg') }}">
@endif @endif
</x-slot:logo> </x-slot:logo>
<x-slot:documentation> <x-slot:documentation>