diff --git a/frontend/messages/de.json b/frontend/messages/de.json index 704425d5..7969df2a 100644 --- a/frontend/messages/de.json +++ b/frontend/messages/de.json @@ -301,6 +301,7 @@ "comp_multiselect_placeholder": "Namen tippen...", "comp_multiselect_remove": "Entfernen", "comp_multiselect_loading": "Suche...", + "comp_typeahead_error": "Suche fehlgeschlagen. Bitte versuchen Sie es erneut.", "comp_taginput_placeholder_create": "Schlagworte hinzufügen...", "comp_taginput_placeholder_filter": "Nach Schlagworten filtern...", "comp_taginput_remove": "Schlagwort entfernen", diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 24856bd1..b45711e6 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -301,6 +301,7 @@ "comp_multiselect_placeholder": "Type a name...", "comp_multiselect_remove": "Remove", "comp_multiselect_loading": "Searching...", + "comp_typeahead_error": "Search failed. Please try again.", "comp_taginput_placeholder_create": "Add tags...", "comp_taginput_placeholder_filter": "Filter by tags...", "comp_taginput_remove": "Remove tag", diff --git a/frontend/messages/es.json b/frontend/messages/es.json index 74b45118..9821ad93 100644 --- a/frontend/messages/es.json +++ b/frontend/messages/es.json @@ -301,6 +301,7 @@ "comp_multiselect_placeholder": "Escriba un nombre...", "comp_multiselect_remove": "Eliminar", "comp_multiselect_loading": "Buscando...", + "comp_typeahead_error": "La búsqueda falló. Inténtelo de nuevo.", "comp_taginput_placeholder_create": "Añadir etiquetas...", "comp_taginput_placeholder_filter": "Filtrar por etiquetas...", "comp_taginput_remove": "Eliminar etiqueta", diff --git a/frontend/src/lib/document/DocumentPickerDropdown.svelte b/frontend/src/lib/document/DocumentPickerDropdown.svelte index e7d30706..951f79b9 100644 --- a/frontend/src/lib/document/DocumentPickerDropdown.svelte +++ b/frontend/src/lib/document/DocumentPickerDropdown.svelte @@ -62,13 +62,15 @@ function handleSelect(doc: DocumentOption) { class="block w-full rounded border border-line bg-surface px-3 py-2 text-sm text-ink placeholder:text-ink-3 focus:outline-none focus-visible:ring-2 focus-visible:ring-focus-ring" /> - {#if picker.isOpen && (picker.results.length > 0 || picker.loading)} + {#if picker.isOpen && (picker.results.length > 0 || picker.loading || picker.error)}