Added header to part livesearch dropdown part results

This commit is contained in:
Jan Böhmer 2024-02-27 23:02:05 +01:00
parent a3dcd1a0a8
commit c87f809d12

View file

@ -71,6 +71,10 @@ export default class extends Controller {
.then((response) => response.json());
},
templates: {
header({ html }) {
return html`<span class="aa-SourceHeaderTitle">Parts</span>
<div class="aa-SourceHeaderLine" />`;
},
item({item, components, html}) {
const details_url = part_detail_uri_template.replace('__ID__', item.id);