diff --git a/src/components/ItaliaTheme/Blocks/VideoGallery/Block/EditBlock.jsx b/src/components/ItaliaTheme/Blocks/VideoGallery/Block/EditBlock.jsx index cf2004a0e..0f26d0e49 100644 --- a/src/components/ItaliaTheme/Blocks/VideoGallery/Block/EditBlock.jsx +++ b/src/components/ItaliaTheme/Blocks/VideoGallery/Block/EditBlock.jsx @@ -32,10 +32,13 @@ class EditBlock extends SubblockEdit { if (__SERVER__) { return
; } - return ({data.title}
} + > ) : ( - + <> + + {showVideoCaption &&{data.title}
} + > )} > ) : ( <> {data.url.match('vimeo') ? ( - + <> + + {showVideoCaption &&{data.title}
} + > ) : ( <> {data.url.match('.mp4') ? ( // eslint-disable-next-line jsx-a11y/media-has-caption - + <> + + {showVideoCaption &&{data.title}
} + > ) : data.allowExternals ? ( - + <> + + {showVideoCaption &&{data.title}
} + > ) : ( )} diff --git a/src/components/ItaliaTheme/Blocks/VideoGallery/Edit.jsx b/src/components/ItaliaTheme/Blocks/VideoGallery/Edit.jsx index d60343a4a..a36ac75c7 100644 --- a/src/components/ItaliaTheme/Blocks/VideoGallery/Edit.jsx +++ b/src/components/ItaliaTheme/Blocks/VideoGallery/Edit.jsx @@ -51,6 +51,7 @@ class Edit extends SubblocksEdit { {this.state.subblocks.map((subblock, subindex) => (