Merge branch 'front/dz-post-data' of github.com:strapi/strapi into ctb/events

This commit is contained in:
soupette 2019-12-12 16:13:45 +01:00
commit a01112df00

View File

@ -1352,31 +1352,60 @@ const FormModal = () => {
{formatMessage({ id: getTrad('form.button.delete') })} {formatMessage({ id: getTrad('form.button.delete') })}
</Button> </Button>
)} )}
<CustomButton {isCreating && state.attributeType === 'dynamiczone' && (
type={isCreating ? 'submit' : 'button'} <CustomButton
color={ type={isCreating ? 'submit' : 'button'}
(isCreatingContentType || color={
isCreatingComponent || (isCreatingContentType ||
isEditingCategory || isCreatingComponent ||
isEditingCategory ||
(state.modalType === 'addComponentToDynamicZone' &&
state.step === '1' &&
!isCreatingComponentFromAView)) &&
!isCreating
? 'success'
: 'primary'
}
onClick={e => handleSubmit(e, true)}
icon={
(isCreatingAttribute &&
!isCreatingComponentFromAView &&
state.step !== '1') ||
(state.modalType === 'addComponentToDynamicZone' && (state.modalType === 'addComponentToDynamicZone' &&
state.step === '1' && isCreatingComponentFromAView) ||
!isCreatingComponentFromAView)) && (isCreatingComponentFromAView && state.step === '2')
!isCreating }
? 'success' >
: 'primary' {getButtonSubmitMessage()}
} </CustomButton>
onClick={e => handleSubmit(e, true)} )}
icon={ {state.attributeType !== 'dynamiczone' && (
(isCreatingAttribute && <CustomButton
!isCreatingComponentFromAView && type={isCreating ? 'submit' : 'button'}
state.step !== '1') || color={
(state.modalType === 'addComponentToDynamicZone' && (isCreatingContentType ||
isCreatingComponentFromAView) || isCreatingComponent ||
(isCreatingComponentFromAView && state.step === '2') isEditingCategory ||
} (state.modalType === 'addComponentToDynamicZone' &&
> state.step === '1' &&
{getButtonSubmitMessage()} !isCreatingComponentFromAView)) &&
</CustomButton> !isCreating
? 'success'
: 'primary'
}
onClick={e => handleSubmit(e, true)}
icon={
(isCreatingAttribute &&
!isCreatingComponentFromAView &&
state.step !== '1') ||
(state.modalType === 'addComponentToDynamicZone' &&
isCreatingComponentFromAView) ||
(isCreatingComponentFromAView && state.step === '2')
}
>
{getButtonSubmitMessage()}
</CustomButton>
)}
</div> </div>
</section> </section>
</ModalFooter> </ModalFooter>