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
71358ace
Commit
71358ace
authored
Apr 04, 2022
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix approver select debounce
Closes
https://gitlab.com/gitlab-org/gitlab/-/issues/6488
parent
f64be48c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
ee/app/assets/javascripts/approvals/components/approvers_select.vue
...ets/javascripts/approvals/components/approvers_select.vue
+6
-4
No files found.
ee/app/assets/javascripts/approvals/components/approvers_select.vue
View file @
71358ace
...
@@ -104,6 +104,11 @@ export default {
...
@@ -104,6 +104,11 @@ export default {
},
},
},
},
mounted
()
{
mounted
()
{
const
query
=
debounce
(
({
term
,
callback
})
=>
this
.
fetchGroupsAndUsers
(
term
).
then
(
callback
),
500
,
);
import
(
/* webpackChunkName: 'select2' */
'
select2/select2
'
)
import
(
/* webpackChunkName: 'select2' */
'
select2/select2
'
)
.
then
(()
=>
{
.
then
(()
=>
{
// eslint-disable-next-line promise/no-nesting
// eslint-disable-next-line promise/no-nesting
...
@@ -117,10 +122,7 @@ export default {
...
@@ -117,10 +122,7 @@ export default {
closeOnSelect
:
false
,
closeOnSelect
:
false
,
formatResult
,
formatResult
,
formatSelection
,
formatSelection
,
query
:
debounce
(({
term
,
callback
})
=>
{
query
,
// eslint-disable-next-line promise/no-nesting
return
this
.
fetchGroupsAndUsers
(
term
).
then
(
callback
);
},
250
),
id
:
({
type
,
id
})
=>
`
${
type
}${
id
}
`
,
id
:
({
type
,
id
})
=>
`
${
type
}${
id
}
`
,
})
})
.
on
(
'
change
'
,
(
e
)
=>
this
.
onChange
(
e
));
.
on
(
'
change
'
,
(
e
)
=>
this
.
onChange
(
e
));
...
...
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