Add None / Any options to search bar
This commit is contained in:
parent
f5f26f0bf7
commit
702dad6c07
2 changed files with 18 additions and 0 deletions
|
@ -92,6 +92,16 @@ export const conditions = [
|
||||||
tokenKey: 'label',
|
tokenKey: 'label',
|
||||||
value: 'none',
|
value: 'none',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
url: 'my_reaction_emoji=None',
|
||||||
|
tokenKey: 'my-reaction',
|
||||||
|
value: 'none',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
url: 'my_reaction_emoji=Any',
|
||||||
|
tokenKey: 'my-reaction',
|
||||||
|
value: 'any',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const IssuableFilteredSearchTokenKeys = new FilteredSearchTokenKeys(
|
const IssuableFilteredSearchTokenKeys = new FilteredSearchTokenKeys(
|
||||||
|
|
|
@ -105,6 +105,14 @@
|
||||||
%span.label-title.js-data-value
|
%span.label-title.js-data-value
|
||||||
{{title}}
|
{{title}}
|
||||||
#js-dropdown-my-reaction.filtered-search-input-dropdown-menu.dropdown-menu
|
#js-dropdown-my-reaction.filtered-search-input-dropdown-menu.dropdown-menu
|
||||||
|
%ul{ data: { dropdown: true } }
|
||||||
|
%li.filter-dropdown-item{ data: { value: 'none' } }
|
||||||
|
%button.btn.btn-link{ type: 'button' }
|
||||||
|
= _('None')
|
||||||
|
%li.filter-dropdown-item{ data: { value: 'any' } }
|
||||||
|
%button.btn.btn-link{ type: 'button' }
|
||||||
|
= _('Any')
|
||||||
|
%li.divider.droplab-item-ignore
|
||||||
%ul.filter-dropdown{ data: { dynamic: true, dropdown: true } }
|
%ul.filter-dropdown{ data: { dynamic: true, dropdown: true } }
|
||||||
%li.filter-dropdown-item
|
%li.filter-dropdown-item
|
||||||
%button.btn.btn-link{ type: 'button' }
|
%button.btn.btn-link{ type: 'button' }
|
||||||
|
|
Loading…
Reference in a new issue