Skip to content
Snippets Groups Projects
Commit 0d93b92a authored by Sinzeanu Demetriad's avatar Sinzeanu Demetriad
Browse files

Merge branch 'develop' of gitlab.coko.foundation:xpub/xpub-faraday into...

Merge branch 'develop' of gitlab.coko.foundation:xpub/xpub-faraday into HIN-1300-Changes-For-Trash-Icons
parents 79104158 8e265046
No related branches found
No related tags found
3 merge requests!222Sprint #26,!221Sprint #26 Update,!219Hin 1300 changes for trash icons
...@@ -75,7 +75,7 @@ const ManuscriptCard = ({ ...@@ -75,7 +75,7 @@ const ManuscriptCard = ({
</Text> </Text>
)} )}
</Row> </Row>
<Row alignItems="center" justify="flex-start"> <Row alignItems="center" height={5} justify="flex-start">
<H4>Handling editor</H4> <H4>Handling editor</H4>
<Text ml={1} mr={3} whiteSpace="nowrap"> <Text ml={1} mr={3} whiteSpace="nowrap">
{get(handlingEditor, 'name', 'Unassigned')} {get(handlingEditor, 'name', 'Unassigned')}
......
...@@ -51,6 +51,7 @@ import { onChange, onSubmit, setInitialValues, validate } from './utils' ...@@ -51,6 +51,7 @@ import { onChange, onSubmit, setInitialValues, validate } from './utils'
const Wizard = ({ const Wizard = ({
step, step,
history, history,
canEdit,
journal, journal,
prevStep, prevStep,
isEditMode, isEditMode,
...@@ -58,13 +59,12 @@ const Wizard = ({ ...@@ -58,13 +59,12 @@ const Wizard = ({
isFirstStep, isFirstStep,
handleSubmit, handleSubmit,
getButtonText, getButtonText,
isLastFragment,
isFilesFetching, isFilesFetching,
isAuthorsFetching, isAuthorsFetching,
journal: { manuscriptTypes = [] }, journal: { manuscriptTypes = [] },
...rest ...rest
}) => }) =>
isLastFragment ? ( canEdit ? (
<Root className="wizard-root"> <Root className="wizard-root">
<Steps currentStep={step}> <Steps currentStep={step}>
{wizardSteps.map(({ stepTitle }) => ( {wizardSteps.map(({ stepTitle }) => (
...@@ -180,8 +180,13 @@ export default compose( ...@@ -180,8 +180,13 @@ export default compose(
reduxAuthorError, reduxAuthorError,
isLastFragment: isLastFragment:
get(fragment, 'id', '') === last(get(collection, 'fragments', [])), get(fragment, 'id', '') === last(get(collection, 'fragments', [])),
status: get(collection, 'status', ''),
}), }),
), ),
withProps(({ status, isLastFragment }) => ({
canEdit:
isLastFragment && !(status === 'accepted' || status === 'rejected'),
})),
withHandlers({ withHandlers({
getButtonText: ({ isLastStep, isEditMode }) => () => { getButtonText: ({ isLastStep, isEditMode }) => () => {
if (isEditMode && isLastStep) { if (isEditMode && isLastStep) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment