Commit f644cac6 authored by Clement Ho's avatar Clement Ho

Fix bugs and failing builds

parent fd31eeab
...@@ -45,7 +45,7 @@ class DropdownUser extends gl.FilteredSearchDropdown { ...@@ -45,7 +45,7 @@ class DropdownUser extends gl.FilteredSearchDropdown {
getSearchInput() { getSearchInput() {
const query = gl.DropdownUtils.getSearchInput(this.input); const query = gl.DropdownUtils.getSearchInput(this.input);
const { lastToken } = gl.FilteredSearchTokenizer.processTokens(query, this.tokenKeys); const { lastToken } = gl.FilteredSearchTokenizer.processTokens(query, this.tokenKeys.get());
let value = lastToken || ''; let value = lastToken || '';
......
...@@ -66,7 +66,7 @@ class FilteredSearchDropdownManager { ...@@ -66,7 +66,7 @@ class FilteredSearchDropdownManager {
this.mapping.weight = { this.mapping.weight = {
reference: null, reference: null,
gl: 'DropdownNonUser', gl: 'DropdownNonUser',
element: document.querySelector('#js-dropdown-weight'), element: this.container.querySelector('#js-dropdown-weight'),
}; };
} }
} }
......
...@@ -453,7 +453,7 @@ class FilteredSearchManager { ...@@ -453,7 +453,7 @@ class FilteredSearchManager {
this.saveCurrentSearchQuery(); this.saveCurrentSearchQuery();
const { tokens, searchToken } const { tokens, searchToken }
= this.tokenizer.processTokens(searchQuery, this.filteredSearchTokenKeys); = this.tokenizer.processTokens(searchQuery, this.filteredSearchTokenKeys.get());
const currentState = gl.utils.getParameterByName('state') || 'opened'; const currentState = gl.utils.getParameterByName('state') || 'opened';
paths.push(`state=${currentState}`); paths.push(`state=${currentState}`);
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
%span.label-title.js-data-value %span.label-title.js-data-value
{{title}} {{title}}
- if type == :issues || type == :boards - if type == :issues || type == :boards || type == :boards_modal
#js-dropdown-weight.filtered-search-input-dropdown-menu.dropdown-menu #js-dropdown-weight.filtered-search-input-dropdown-menu.dropdown-menu
%ul{ 'data-dropdown' => true } %ul{ 'data-dropdown' => true }
%li.filter-dropdown-item{ 'data-value' => 'none' } %li.filter-dropdown-item{ 'data-value' => 'none' }
......
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