diff --git a/src/views/gutenberg-blocks/tainacan-items/item-submission-form/index.js b/src/views/gutenberg-blocks/tainacan-items/item-submission-form/index.js index 307ffb36d..85bca80a9 100644 --- a/src/views/gutenberg-blocks/tainacan-items/item-submission-form/index.js +++ b/src/views/gutenberg-blocks/tainacan-items/item-submission-form/index.js @@ -1,8 +1,22 @@ const { registerBlockType } = wp.blocks; - const { __ } = wp.i18n; -const { Button, TextControl, TextareaControl, ColorPicker, BaseControl, CheckboxControl, FontSizePicker, HorizontalRule, Spinner, ToggleControl, Placeholder, PanelBody, ToolbarGroup, ToolbarButton } = wp.components; +const { + Button, + TextControl, + TextareaControl, + ColorPicker, + BaseControl, + CheckboxControl, + FontSizePicker, + HorizontalRule, + Spinner, + ToggleControl, + Placeholder, + PanelBody, + ToolbarGroup, + ToolbarButton +} = wp.components; const { InspectorControls, BlockControls } = wp.editor; @@ -261,39 +275,56 @@ registerBlockType('tainacan/item-submission-form', { { collectionId != undefined ? - - { tainacan_blocks.wp_version < '5.5' ? - - : - openCollectionModal() }> -

- - - - - -

  - { __('Change target collection', 'tainacan') } -
- } -
+ { tainacan_blocks.wp_version < '5.4' ? + + : + + { tainacan_blocks.wp_version < '5.5' ? + + : + openCollectionModal() }> +

+ + + + + +

  + { __('Change target collection', 'tainacan') } +
+ } +
+ }
: null }