@@ -12,8 +12,6 @@ export const AudioBubbleNode = ({ url }: Props) => {
|
||||
return isDefined(url) ? (
|
||||
<audio src={url} controls />
|
||||
) : (
|
||||
<Text color={'gray.500'}>
|
||||
{t('editor.blocks.bubbles.audio.node.clickToEdit.text')}
|
||||
</Text>
|
||||
<Text color={'gray.500'}>{t('clickToEdit')}</Text>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -9,10 +9,6 @@ type Props = {
|
||||
export const EmbedBubbleContent = ({ block }: Props) => {
|
||||
const { t } = useTranslate()
|
||||
if (!block.content?.url)
|
||||
return (
|
||||
<Text color="gray.500">
|
||||
{t('editor.blocks.bubbles.embed.node.clickToEdit.text')}
|
||||
</Text>
|
||||
)
|
||||
return <Text color="gray.500">{t('clickToEdit')}</Text>
|
||||
return <Text>{t('editor.blocks.bubbles.embed.node.show.text')}</Text>
|
||||
}
|
||||
|
||||
@@ -11,9 +11,7 @@ export const ImageBubbleContent = ({ block }: Props) => {
|
||||
const containsVariables =
|
||||
block.content?.url?.includes('{{') && block.content.url.includes('}}')
|
||||
return !block.content?.url ? (
|
||||
<Text color={'gray.500'}>
|
||||
{t('editor.blocks.bubbles.image.node.clickToEdit.text')}
|
||||
</Text>
|
||||
<Text color={'gray.500'}>{t('clickToEdit')}</Text>
|
||||
) : (
|
||||
<Box w="full">
|
||||
<Image
|
||||
|
||||
@@ -13,11 +13,7 @@ type Props = {
|
||||
export const VideoBubbleContent = ({ block }: Props) => {
|
||||
const { t } = useTranslate()
|
||||
if (!block.content?.url || !block.content.type)
|
||||
return (
|
||||
<Text color="gray.500">
|
||||
{t('editor.blocks.bubbles.video.node.clickToEdit.text')}
|
||||
</Text>
|
||||
)
|
||||
return <Text color="gray.500">{t('clickToEdit')}</Text>
|
||||
const containsVariables =
|
||||
block.content?.url?.includes('{{') && block.content.url.includes('}}')
|
||||
switch (block.content.type) {
|
||||
|
||||
@@ -32,7 +32,7 @@ test('should be configurable', async ({ page }) => {
|
||||
await expect(page.getByTestId('selected-item-label').first()).toHaveText(
|
||||
'My link typebot 2'
|
||||
)
|
||||
await page.click('input[placeholder="Select a block"]')
|
||||
await page.click('input[placeholder="Select a group"]')
|
||||
await page.click('text=Group #2')
|
||||
|
||||
await page.click('text=Preview')
|
||||
|
||||
Reference in New Issue
Block a user