Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
ThaliApp
Commits
a0a28b09
Commit
a0a28b09
authored
Feb 13, 2019
by
Sébastiaan Versteeg
Browse files
Merge branch 'fix/remove-search-delay-in-events-admin' into 'master'
Remove search delay in events admin screen See merge request
!230
parents
b363f36f
c6837928
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/ui/components/searchHeader/SearchHeader.js
View file @
a0a28b09
...
...
@@ -140,10 +140,7 @@ class SearchHeader extends Component {
updateSearchKey
=
(
searchKey
)
=>
{
if
(
this
.
state
.
searchKey
!==
searchKey
)
{
this
.
setState
({
searchKey
});
clearTimeout
(
this
.
searchTimeout
);
this
.
searchTimeout
=
setTimeout
(()
=>
{
this
.
props
.
search
(
searchKey
);
},
500
);
this
.
props
.
search
(
searchKey
);
}
};
...
...
app/ui/screens/memberList/MemberListScreen.js
View file @
a0a28b09
...
...
@@ -29,12 +29,19 @@ class MemberListScreen extends Component {
}
};
search
=
(
searchKey
)
=>
{
clearTimeout
(
this
.
searchTimeout
);
this
.
searchTimeout
=
setTimeout
(()
=>
{
this
.
props
.
loadMembers
(
searchKey
);
},
500
);
};
render
()
{
const
header
=
(
<
SearchHeader
title
=
{
this
.
props
.
t
(
'
Member List
'
)}
searchText
=
{
this
.
props
.
t
(
'
Find a member
'
)}
search
=
{
key
=>
this
.
props
.
loadMembers
(
key
)
}
search
=
{
this
.
search
}
searchKey
=
{
this
.
props
.
searchKey
}
/
>
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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