Skip to content

Commit

Permalink
👕 Fixing import order and removing extra spaces in NodeView
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic committed May 3, 2024
1 parent 2180f03 commit b2bfe1b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/editor-ui/src/Interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import type { PartialBy, TupleToUnion } from '@/utils/typeHelpers';
import type { Component } from 'vue';
import type { Scope } from '@n8n/permissions';
import type { NotificationOptions as ElementNotificationOptions } from 'element-plus';
import { Connection } from '@jsplumb/core';
import type { Connection } from '@jsplumb/core';

export * from 'n8n-design-system/types';

Expand Down
25 changes: 13 additions & 12 deletions packages/editor-ui/src/views/NodeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -774,11 +774,12 @@ export default defineComponent({
return this.aiStore.nextStepPopupConfig.open;
},
shouldShowNextStepDialog(): boolean {
const userHasSeenAIAssistantExperiment = useStorage(AI_ASSISTANT_LOCAL_STORAGE_KEY).value === 'true';
const userHasSeenAIAssistantExperiment =
useStorage(AI_ASSISTANT_LOCAL_STORAGE_KEY).value === 'true';
const experimentEnabled = this.aiStore.isAssistantExperimentEnabled;
const isCloudDeployment = this.settingsStore.isCloudDeployment;
return isCloudDeployment && experimentEnabled && !userHasSeenAIAssistantExperiment;
}
},
},
data() {
return {
Expand Down Expand Up @@ -3516,12 +3517,12 @@ export default defineComponent({
if (this.shouldShowNextStepDialog) {
if (endpoint?.__meta) {
this.aiStore.latestConnectionInfo = {
sourceId: endpoint .__meta.nodeId,
index: endpoint .__meta.index,
sourceId: endpoint.__meta.nodeId,
index: endpoint.__meta.index,
eventSource: NODE_CREATOR_OPEN_SOURCES.PLUS_ENDPOINT,
outputType: endpoint .scope as ConnectionTypes,
endpointUuid: endpoint .uuid,
stepName: endpoint .__meta.nodeName,
outputType: endpoint.scope as ConnectionTypes,
endpointUuid: endpoint.uuid,
stepName: endpoint.__meta.nodeName,
};
const endpointElement = endpoint.endpoint.canvas;
this.aiStore.openNextStepPopup(
Expand All @@ -3531,12 +3532,12 @@ export default defineComponent({
}
} else {
this.insertNodeAfterSelected({
sourceId: endpoint .__meta.nodeId,
index: endpoint .__meta.index,
sourceId: endpoint.__meta.nodeId,
index: endpoint.__meta.index,
eventSource: NODE_CREATOR_OPEN_SOURCES.PLUS_ENDPOINT,
outputType: endpoint .scope as ConnectionTypes,
endpointUuid: endpoint .uuid,
stepName: endpoint .__meta.nodeName,
outputType: endpoint.scope as ConnectionTypes,
endpointUuid: endpoint.uuid,
stepName: endpoint.__meta.nodeName,
});
}
},
Expand Down

0 comments on commit b2bfe1b

Please sign in to comment.