diff --git a/app/components/component-dashboard/src/components/Dashboard.js b/app/components/component-dashboard/src/components/Dashboard.js index 899780e5f54c8e17dc9f24885d091077f2a20d64..ff23f5449eb3523618468b0fdb7da69d9cb4d038 100644 --- a/app/components/component-dashboard/src/components/Dashboard.js +++ b/app/components/component-dashboard/src/components/Dashboard.js @@ -41,7 +41,7 @@ const Dashboard = ({ history, ...props }) => { }) if (loading) return <Spinner /> - if (error) return error + if (error) return JSON.stringify(error) const dashboard = (data && data.manuscripts) || [] const currentUser = data && data.currentUser diff --git a/app/components/component-dashboard/src/components/sections/EditorItem.js b/app/components/component-dashboard/src/components/sections/EditorItem.js index b6abd5d49a4f11c221ff25e104bd5bffa70c0754..35e17175110c16a34cf587d4fc0dd605434eecc6 100644 --- a/app/components/component-dashboard/src/components/sections/EditorItem.js +++ b/app/components/component-dashboard/src/components/sections/EditorItem.js @@ -28,7 +28,7 @@ const EditorItemLinks = ({ version }) => ( <Action to={`/journal/versions/${version.id}/submit`}>Summary Info</Action> <Action data-testid="control-panel" - to={`/journal/versions/${version.id}/decisions/${version.id}`} + to={`/journal/versions/${version.id}/decision`} > {version.decision && version.decision.status === 'submitted' ? `Decision: ${version.decision.recommendation}` diff --git a/app/components/component-dashboard/src/components/sections/ReviewerItem.js b/app/components/component-dashboard/src/components/sections/ReviewerItem.js index 01a8fceafe9b51e023d4cbf2a19bdf5b68376258..7856a9e98fb7187774a6ce40325491b1287f3645 100644 --- a/app/components/component-dashboard/src/components/sections/ReviewerItem.js +++ b/app/components/component-dashboard/src/components/sections/ReviewerItem.js @@ -24,7 +24,7 @@ const ReviewerItem = ({ version, journals, currentUser, reviewerRespond }) => { {(status === 'accepted' || status === 'completed') && ( <ActionGroup> - <Action to={`/journal/versions/${version.id}/reviews`}> + <Action to={`/journal/versions/${version.id}/review`}> {status === 'completed' ? 'Completed' : 'Do Review'} </Action> </ActionGroup> diff --git a/app/components/component-dashboard/src/graphql/mutations/index.js b/app/components/component-dashboard/src/graphql/mutations/index.js index 019eceb78ba1b28f61adcd3fa8ef7334c72aabd3..cd9b489b448ae0f4560b78e5c8c8685a4da63b43 100644 --- a/app/components/component-dashboard/src/graphql/mutations/index.js +++ b/app/components/component-dashboard/src/graphql/mutations/index.js @@ -16,9 +16,8 @@ export default { id role name - object { - objectId - objectType + manuscript { + id } members { id @@ -50,9 +49,8 @@ export default { id role name - object { - objectId - objectType + manuscript { + id } members { id diff --git a/app/components/component-dashboard/src/graphql/queries/index.js b/app/components/component-dashboard/src/graphql/queries/index.js index 14952c20c8e356ccac9810bb8931904ce3a9aa3d..e62bbe994fc56bd789663bc5562e24ce7ef20865 100644 --- a/app/components/component-dashboard/src/graphql/queries/index.js +++ b/app/components/component-dashboard/src/graphql/queries/index.js @@ -28,9 +28,8 @@ export default { id role name - object { - objectId - objectType + manuscript { + id } members { id