Skip to content
Snippets Groups Projects
Commit 3bdc275d authored by Filipa Lacerda's avatar Filipa Lacerda
Browse files

Merge branch 'new-list-dropdown-ajax-refactor' into 'master'

Replaced $.get with axois.get

See merge request gitlab-org/gitlab-ce!16992
parents 8a53025d d7c04772
No related branches found
No related tags found
No related merge requests found
/* eslint-disable func-names, no-new, space-before-function-paren, one-var,
promise/catch-or-return */
import axios from '~/lib/utils/axios_utils';
import _ from 'underscore';
import CreateLabelDropdown from '../../create_label';
 
Loading
Loading
@@ -28,9 +29,9 @@ gl.issueBoards.newListDropdownInit = () => {
 
$this.glDropdown({
data(term, callback) {
$.get($this.attr('data-list-labels-path'))
.then((resp) => {
callback(resp);
axios.get($this.attr('data-list-labels-path'))
.then(({ data }) => {
callback(data);
});
},
renderRow (label) {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment