Renamed the quicksearch controller

This commit is contained in:
Jan Böhmer 2024-02-29 22:50:26 +01:00
parent 0dea26f67d
commit 04aeab7ea6
2 changed files with 6 additions and 1 deletions

View file

@ -31,6 +31,11 @@ import {
STATISTICS_PARTS
} from '../../translator';
/**
* This controller is responsible for the search fields in the navbar and the homepage.
* It uses the Algolia Autocomplete library to provide a fast and responsive search.
*/
export default class extends Controller {
static targets = ["input"];

View file

@ -84,7 +84,7 @@
{{ _self.settings_drodown(is_navbar) }}
{% endif %}
<div {{ stimulus_controller('elements/part_livesearch') }}
<div {{ stimulus_controller('elements/part_search') }}
class="mt-auto mb-auto {% if not is_navbar %}w-100{% endif %}"
{% if is_navbar %}id="navbar-quicksearch-container"{% endif %}