Commit 0082cb20 authored by Phil Hughes's avatar Phil Hughes

Allowed weight for issue boards filter

parent 2a654386
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
this.filteredSearchInput = document.querySelector('.filtered-search'); this.filteredSearchInput = document.querySelector('.filtered-search');
this.page = page; this.page = page;
if (this.page === 'issues') { if (this.page === 'issues' || this.page === 'boards') {
this.filteredSearchTokenKeys = gl.FilteredSearchTokenKeysWithWeights; this.filteredSearchTokenKeys = gl.FilteredSearchTokenKeysWithWeights;
} }
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
}, },
}; };
if (this.page === 'issues') { if (this.page === 'issues' || this.page === 'boards') {
this.mapping.weight = { this.mapping.weight = {
reference: null, reference: null,
gl: 'DropdownNonUser', gl: 'DropdownNonUser',
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
this.tokensContainer = document.querySelector('.tokens-container'); this.tokensContainer = document.querySelector('.tokens-container');
this.filteredSearchTokenKeys = gl.FilteredSearchTokenKeys; this.filteredSearchTokenKeys = gl.FilteredSearchTokenKeys;
if (page === 'issues') { if (page === 'issues' || page === 'boards') {
this.filteredSearchTokenKeys = gl.FilteredSearchTokenKeysWithWeights; this.filteredSearchTokenKeys = gl.FilteredSearchTokenKeysWithWeights;
} }
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
%span.dropdown-label-box{ style: 'background: {{color}}' } %span.dropdown-label-box{ style: 'background: {{color}}' }
%span.label-title.js-data-value %span.label-title.js-data-value
{{title}} {{title}}
- if type == :issues - if type == :issues || type == :boards
#js-dropdown-weight.dropdown-menu{ data: { icon: 'balance-scale', hint: 'weight', tag: 'weight' } } #js-dropdown-weight.dropdown-menu{ data: { icon: 'balance-scale', hint: 'weight', tag: 'weight' } }
%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