fix: fallback to local coolify.png
This commit is contained in:
@@ -96,7 +96,7 @@ class Select extends Component
|
|||||||
return [
|
return [
|
||||||
'name' => str($key)->headline(),
|
'name' => str($key)->headline(),
|
||||||
'logo' => asset($logo),
|
'logo' => asset($logo),
|
||||||
'logo_github_url' => 'https://raw.githubusercontent.com/coollabsio/coolify/refs/heads/main/public/'.$logo,
|
'logo_github_url' => 'https://raw.githubusercontent.com/coollabsio/coolify/refs/heads/main/public/a'.$logo,
|
||||||
] + (array) $service;
|
] + (array) $service;
|
||||||
})->all();
|
})->all();
|
||||||
$gitBasedApplications = [
|
$gitBasedApplications = [
|
||||||
|
@@ -104,6 +104,7 @@
|
|||||||
:src='service.logo'
|
:src='service.logo'
|
||||||
x-on:error.window="$event.target.src = service.logo_github_url"
|
x-on:error.window="$event.target.src = service.logo_github_url"
|
||||||
onerror="this.onerror=null; this.src=this.getAttribute('data-fallback');"
|
onerror="this.onerror=null; this.src=this.getAttribute('data-fallback');"
|
||||||
|
x-on:error="$event.target.src = '/svgs/coolify.png'"
|
||||||
:data-fallback='service.logo_github_url' />
|
:data-fallback='service.logo_github_url' />
|
||||||
</template>
|
</template>
|
||||||
</x-slot:logo>
|
</x-slot:logo>
|
||||||
|
Reference in New Issue
Block a user