move autocomplete controllers

This commit is contained in:
Pete Matsyburka
2024-03-23 23:33:42 +02:00
parent 077eab7005
commit 8bef75e570
7 changed files with 51 additions and 55 deletions
@@ -20,7 +20,7 @@ export default class extends HTMLElement {
fetch = (text, resolve) => {
const queryParams = new URLSearchParams({ q: text })
fetch('/api/template_folders_autocomplete?' + queryParams).then(async (resp) => {
fetch('/template_folders_autocomplete?' + queryParams).then(async (resp) => {
const items = await resp.json()
resolve(items)