Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
702dad6c
Commit
702dad6c
authored
Oct 27, 2018
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add None / Any options to search bar
parent
f5f26f0b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
app/assets/javascripts/filtered_search/issuable_filtered_search_token_keys.js
...ts/filtered_search/issuable_filtered_search_token_keys.js
+10
-0
app/views/shared/issuable/_search_bar.html.haml
app/views/shared/issuable/_search_bar.html.haml
+8
-0
No files found.
app/assets/javascripts/filtered_search/issuable_filtered_search_token_keys.js
View file @
702dad6c
...
@@ -92,6 +92,16 @@ export const conditions = [
...
@@ -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
(
...
...
app/views/shared/issuable/_search_bar.html.haml
View file @
702dad6c
...
@@ -105,6 +105,14 @@
...
@@ -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'
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment