Add loading indicator and empty result message to advanced interface search (#30085)

This commit is contained in:
Claire 2024-04-29 11:55:41 +02:00 committed by GitHub
parent ac7f4d57bb
commit 7d3fe2b4c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 62 additions and 75 deletions

View file

@ -50,6 +50,7 @@ export default function search(state = initialState, action) {
return state.set('hidden', true);
case SEARCH_FETCH_REQUEST:
return state.withMutations(map => {
map.set('results', ImmutableMap());
map.set('isLoading', true);
map.set('submitted', true);
map.set('type', action.searchType);