From 4da4c3a8f29f08c747ce54ffc792c22988d055eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Thu, 2 Mar 2023 13:41:01 +0100 Subject: [PATCH] Use brand logos if ha_brand in search results (#26427) --- source/integrations/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/integrations/index.html b/source/integrations/index.html index 1e319bbb292..12bf839b82a 100644 --- a/source/integrations/index.html +++ b/source/integrations/index.html @@ -103,7 +103,7 @@ var allComponents = [ {% capture category %}"{{ ha_category | slugify | downcase }}"{% endcapture %} {% assign categories = categories | push: category %} {%- endfor -%} - {url:"{{ component.url }}", title:"{{component.title}}", cat: [{{categories|join: ","}}], featured: {% if component.featured %}true{% else %}false{% endif %}, v: "{{major_version}}.{{minor_version}}", logo: "{{component.logo}}", domain: "{{component.ha_domain}}"}, + {url:"{{ component.url }}", title:"{{component.title}}", cat: [{{categories|join: ","}}], featured: {% if component.featured %}true{% else %}false{% endif %}, v: "{{major_version}}.{{minor_version}}", logo: "{{component.logo}}", domain: "{{component.ha_domain}}", ha_brand: "{{component.ha_brand}}"}, {% endif -%} {%- endfor -%} false @@ -161,7 +161,7 @@ allComponents.pop(); // remove placeholder element at the end components: [], image: function () { if (this.logo === '') { - return ''; + return ``; } else { return ''; }