Commit 5a2369e3 authored by Mark Florian's avatar Mark Florian

Merge branch...

Merge branch '284731-refactor-jquery-dropdown-implementation-to-gitlab-ui-gldropdown-in-ui_development_kit-js' into 'master'

Remove some dead code

See merge request gitlab-org/gitlab!76173
parents f3e571c3 b660b5ca
import initUIKit from '~/ui_development_kit';
initUIKit();
import $ from 'jquery';
import initDeprecatedJQueryDropdown from '~/deprecated_jquery_dropdown';
import Api from './api';
export default () => {
initDeprecatedJQueryDropdown($('#js-project-dropdown'), {
data: (term, callback) => {
Api.projects(
term,
{
order_by: 'last_activity_at',
},
(data) => {
callback(data);
},
);
},
text: (project) => project.name_with_namespace || project.name,
selectable: true,
fieldName: 'author_id',
filterable: true,
search: {
fields: ['name_with_namespace'],
},
id: (data) => data.id,
isSelected: (data) => data.id === 2,
});
};
...@@ -59,10 +59,6 @@ class HelpController < ApplicationController ...@@ -59,10 +59,6 @@ class HelpController < ApplicationController
@instance_configuration = InstanceConfiguration.new @instance_configuration = InstanceConfiguration.new
end end
def ui
@user = User.new(id: 0, name: 'John Doe', username: '@johndoe')
end
private private
def path_params def path_params
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment