mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added header to part livesearch dropdown part results
This commit is contained in:
parent
a3dcd1a0a8
commit
c87f809d12
1 changed files with 4 additions and 0 deletions
|
@ -71,6 +71,10 @@ export default class extends Controller {
|
||||||
.then((response) => response.json());
|
.then((response) => response.json());
|
||||||
},
|
},
|
||||||
templates: {
|
templates: {
|
||||||
|
header({ html }) {
|
||||||
|
return html`<span class="aa-SourceHeaderTitle">Parts</span>
|
||||||
|
<div class="aa-SourceHeaderLine" />`;
|
||||||
|
},
|
||||||
item({item, components, html}) {
|
item({item, components, html}) {
|
||||||
const details_url = part_detail_uri_template.replace('__ID__', item.id);
|
const details_url = part_detail_uri_template.replace('__ID__', item.id);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue