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
da5b059e
Commit
da5b059e
authored
Nov 16, 2021
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow filtering by user reaction on issue boards
Review feedback
parent
ee9d1afe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
app/assets/javascripts/boards/components/issue_board_filtered_search.vue
...scripts/boards/components/issue_board_filtered_search.vue
+5
-3
app/assets/javascripts/boards/index.js
app/assets/javascripts/boards/index.js
+2
-2
No files found.
app/assets/javascripts/boards/components/issue_board_filtered_search.vue
View file @
da5b059e
<
script
>
import
{
GlFilteredSearchToken
}
from
'
@gitlab/ui
'
;
import
fuzzaldrinPlus
from
'
fuzzaldrin-plus
'
;
import
{
mapActions
}
from
'
vuex
'
;
import
BoardFilteredSearch
from
'
ee_else_ce/boards/components/board_filtered_search.vue
'
;
import
{
BoardType
}
from
'
~/boards/constants
'
;
...
...
@@ -128,14 +129,15 @@ export default {
token
:
EmojiToken
,
unique
:
true
,
fetchEmojis
:
(
search
=
''
)
=>
{
// TODO: Switch to GraphQL query when backend is ready: https://gitlab.com/gitlab-org/gitlab/-/issues/339694
return
axios
.
get
(
`
${
gon
.
relative_url_root
||
''
}
/-/autocomplete/award_emojis`
)
.
then
(({
data
})
=>
{
if
(
search
)
{
return
{
data
:
data
.
filter
((
e
)
=>
e
.
name
.
toLowerCase
().
includes
(
search
.
toLowerCase
())
,
),
data
:
fuzzaldrinPlus
.
filter
(
data
,
search
,
{
key
:
[
'
name
'
]
,
}
),
};
}
return
{
data
};
...
...
app/assets/javascripts/boards/index.js
View file @
da5b059e
...
...
@@ -13,7 +13,7 @@ import FilteredSearchBoards from '~/boards/filtered_search_boards';
import
initBoardsFilteredSearch
from
'
~/boards/mount_filtered_search_issue_boards
'
;
import
store
from
'
~/boards/stores
'
;
import
toggleFocusMode
from
'
~/boards/toggle_focus
'
;
import
{
NavigationType
,
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
import
{
NavigationType
,
isLoggedIn
,
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
import
{
fullBoardId
}
from
'
./boards_util
'
;
import
boardConfigToggle
from
'
./config_toggle
'
;
import
initNewBoard
from
'
./new_board
'
;
...
...
@@ -110,7 +110,7 @@ export default () => {
});
if
(
gon
?.
features
?.
issueBoardsFilteredSearch
)
{
initBoardsFilteredSearch
(
apolloProvider
,
gon
.
current_user_id
>
0
);
initBoardsFilteredSearch
(
apolloProvider
,
isLoggedIn
()
);
}
mountBoardApp
(
$boardApp
);
...
...
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