Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@ import { NODE_CREATOR_OPEN_SOURCES } from '@/constants';
import { useNodeCreatorStore } from '@/stores/nodeCreator.store';
import { useChatPanelStore } from '@/features/assistant/chatPanel.store';
import { useI18n } from '@n8n/i18n';
import { computed } from 'vue';

import { N8nIcon } from '@n8n/design-system';

const nodeCreatorStore = useNodeCreatorStore();
const chatPanelStore = useChatPanelStore();
const i18n = useI18n();

const isChatWindowOpen = computed(
() => chatPanelStore.isOpen && chatPanelStore.isBuilderModeActive,
);

const onAddFirstStepClick = () => {
if (nodeCreatorStore.isCreateNodeActive) {
nodeCreatorStore.isCreateNodeActive = false;
Expand Down Expand Up @@ -60,7 +55,7 @@ async function onBuildWithAIClick() {

<!-- Build with AI Button -->
<div :class="$style.option">
<div :class="[$style.selectedButtonHighlight, { [$style.highlighted]: isChatWindowOpen }]">
<div :class="$style.selectedButtonHighlight">
<button
:class="[$style.button]"
data-test-id="canvas-build-with-ai-button"
Expand Down Expand Up @@ -135,4 +130,4 @@ async function onBuildWithAIClick() {
font-weight: var(--font-weight--regular);
padding: 0 var(--spacing--xs);
}
</style>
</style>