From dccb6d1f0488708b3af9269768798c82709c963a Mon Sep 17 00:00:00 2001 From: Mutasem Aldmour Date: Wed, 14 Aug 2024 13:08:29 +0200 Subject: [PATCH] fix: rename button, hide from community --- packages/design-system/src/locale/lang/en.ts | 2 +- packages/editor-ui/src/components/Error/NodeErrorView.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/design-system/src/locale/lang/en.ts b/packages/design-system/src/locale/lang/en.ts index 5b8f8f4832d3a..444acc61c0ce3 100644 --- a/packages/design-system/src/locale/lang/en.ts +++ b/packages/design-system/src/locale/lang/en.ts @@ -29,7 +29,7 @@ export default { 'codeDiff.replacing': 'Replacing...', 'codeDiff.undo': 'Undo', 'betaTag.beta': 'beta', - 'askAssistantButton.askAssistant': 'Ask Ava', + 'askAssistantButton.askAssistant': 'Ask Assistant', 'assistantChat.errorParsingMarkdown': 'Error parsing markdown content', 'assistantChat.aiAssistantLabel': 'AI Assistant', 'assistantChat.aiAssistantName': 'Ava', diff --git a/packages/editor-ui/src/components/Error/NodeErrorView.vue b/packages/editor-ui/src/components/Error/NodeErrorView.vue index 06bb4677cd45f..2aff0307af5d7 100644 --- a/packages/editor-ui/src/components/Error/NodeErrorView.vue +++ b/packages/editor-ui/src/components/Error/NodeErrorView.vue @@ -122,7 +122,7 @@ const isAskAssistantAvailable = computed(() => { if (!node.value) { return false; } - const isCustomNode = node.value.type === undefined || isCommunityPackageName(node.value); + const isCustomNode = node.value.type === undefined || isCommunityPackageName(node.value.type); return assistantStore.canShowAssistantButtons && !isCustomNode; });