From 37e8e11e31f5a436161e91273eb4e9d7bd35e8d6 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 25 Aug 2023 21:51:52 +0300 Subject: [PATCH] Ensure the correct icons are spinning when refreshing authors and books --- frontend/src/Author/Index/AuthorIndexConnector.js | 6 +++--- frontend/src/Book/Index/BookIndexConnector.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/Author/Index/AuthorIndexConnector.js b/frontend/src/Author/Index/AuthorIndexConnector.js index 7d4dcad58..541f4101a 100644 --- a/frontend/src/Author/Index/AuthorIndexConnector.js +++ b/frontend/src/Author/Index/AuthorIndexConnector.js @@ -16,7 +16,7 @@ import AuthorIndex from './AuthorIndex'; function createMapStateToProps() { return createSelector( createAuthorClientSideCollectionItemsSelector('authorIndex'), - createCommandExecutingSelector(commandNames.REFRESH_AUTHOR), + createCommandExecutingSelector(commandNames.BULK_REFRESH_AUTHOR), createCommandExecutingSelector(commandNames.RSS_SYNC), createCommandExecutingSelector(commandNames.RENAME_AUTHOR), createCommandExecutingSelector(commandNames.RETAG_AUTHOR), @@ -24,17 +24,17 @@ function createMapStateToProps() { ( author, isRefreshingAuthor, + isRssSyncExecuting, isOrganizingAuthor, isRetaggingAuthor, - isRssSyncExecuting, dimensionsState ) => { return { ...author, isRefreshingAuthor, + isRssSyncExecuting, isOrganizingAuthor, isRetaggingAuthor, - isRssSyncExecuting, isSmallScreen: dimensionsState.isSmallScreen }; } diff --git a/frontend/src/Book/Index/BookIndexConnector.js b/frontend/src/Book/Index/BookIndexConnector.js index 7e7b9b783..1c80f6de8 100644 --- a/frontend/src/Book/Index/BookIndexConnector.js +++ b/frontend/src/Book/Index/BookIndexConnector.js @@ -16,8 +16,8 @@ import BookIndex from './BookIndex'; function createMapStateToProps() { return createSelector( createBookClientSideCollectionItemsSelector('bookIndex'), - createCommandExecutingSelector(commandNames.REFRESH_AUTHOR), - createCommandExecutingSelector(commandNames.REFRESH_BOOK), + createCommandExecutingSelector(commandNames.BULK_REFRESH_AUTHOR), + createCommandExecutingSelector(commandNames.BULK_REFRESH_BOOK), createCommandExecutingSelector(commandNames.RSS_SYNC), createCommandExecutingSelector(commandNames.CUTOFF_UNMET_BOOK_SEARCH), createCommandExecutingSelector(commandNames.MISSING_BOOK_SEARCH),