mirror of
https://github.com/strapi/strapi.git
synced 2025-08-22 23:59:17 +00:00
Merge branch 'front/dz-post-data' of github.com:strapi/strapi into ctb/events
This commit is contained in:
commit
a01112df00
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user