debian-mirror-gitlab/app/assets/javascripts/groups/groups_list.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
592 B
JavaScript
Raw Normal View History

2022-03-02 08:16:31 +05:30
import FilterableList from '~/filterable_list';
2017-08-17 22:00:37 +05:30
/**
* Makes search request for groups when user types a value in the search input.
* Updates the html content of the page with the received one.
*/
export default class GroupsList {
constructor() {
const form = document.querySelector('form#group-filter-form');
const filter = document.querySelector('.js-groups-list-filter');
const holder = document.querySelector('.js-groups-list-holder');
if (form && filter && holder) {
const list = new FilterableList(form, filter, holder);
list.initSearch();
}
}
}