diff --git a/packages/component-faraday-ui/src/PublonsTable.js b/packages/component-faraday-ui/src/PublonsTable.js index 4b7a53511d9312f03b61f77d11b52a83e8f5b85d..ce9f549473a84b3e60bda962f46054e93cefd1ef 100644 --- a/packages/component-faraday-ui/src/PublonsTable.js +++ b/packages/component-faraday-ui/src/PublonsTable.js @@ -58,8 +58,8 @@ const TableView = ({ <HiddenCell> <OpenModal confirmText="Invite" - isFetching={isFetching} onConfirm={modalProps => onInviteReviewer(reviewer, modalProps)} + publonsFetching={isFetching} setFetching={setFetching} title="Send invitation to review?" > diff --git a/packages/component-manuscript/src/components/ManuscriptLayout.js b/packages/component-manuscript/src/components/ManuscriptLayout.js index c3e8683307b2b599e99a166cef78f693f2b78ddb..3e5b1c7adbf2a6ab0a4ce6ff52551dde00be4ea2 100644 --- a/packages/component-manuscript/src/components/ManuscriptLayout.js +++ b/packages/component-manuscript/src/components/ManuscriptLayout.js @@ -39,6 +39,8 @@ const ManuscriptLayout = ({ fragment = {}, changeForm, isFetching, + isFetchingData, + publonsFetching, fetchingError, formValues, heExpanded, @@ -84,7 +86,7 @@ const ManuscriptLayout = ({ fragment={fragment} handlingEditors={handlingEditors} inviteHE={toggleAssignHE} - isFetching={isFetching.editorsFetching} + isFetching={isFetchingData.editorsFetching} journal={journal} resendInvitation={inviteHandlingEditor.assignHE} revokeInvitation={inviteHandlingEditor.revokeHE} @@ -161,7 +163,7 @@ const ManuscriptLayout = ({ currentUser={currentUser} expanded={heExpanded} handlingEditors={handlingEditors} - isFetching={isFetching.editorsFetching} + isFetching={isFetchingData.editorsFetching} toggle={toggleAssignHE} /> @@ -179,7 +181,7 @@ const ManuscriptLayout = ({ ) } invitations={invitationsWithReviewers} - isFetching={isFetching.publonsFetching} + isFetching={isFetchingData.publonsFetching} journal={journal} mb={2} publonReviewers={publonReviewers} diff --git a/packages/component-manuscript/src/components/ManuscriptPage.js b/packages/component-manuscript/src/components/ManuscriptPage.js index 0b77b64cdfeaecaa7e71b9089627d0aade3a2519..ab96f5c6b3bb159bf4e1d9f15ea20a341029e5a3 100644 --- a/packages/component-manuscript/src/components/ManuscriptPage.js +++ b/packages/component-manuscript/src/components/ManuscriptPage.js @@ -191,7 +191,7 @@ export default compose( ), }, }, - isFetching: { + isFetchingData: { editorsFetching: selectFetching(state), publonsFetching: isFetching, },