mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
chore(editor): Add telemetry for canvas experiment (#18871)
This commit is contained in:
@@ -769,7 +769,7 @@ function onSetNodeActivated(id: string, event?: MouseEvent) {
|
||||
}
|
||||
}
|
||||
|
||||
setNodeActive(id);
|
||||
setNodeActive(id, 'canvas_default_view');
|
||||
}
|
||||
|
||||
function onOpenSubWorkflow(id: string) {
|
||||
@@ -1212,7 +1212,7 @@ function onSwitchActiveNode(nodeName: string) {
|
||||
const node = workflowsStore.getNodeByName(nodeName);
|
||||
if (!node) return;
|
||||
|
||||
setNodeActiveByName(nodeName);
|
||||
setNodeActiveByName(nodeName, 'other');
|
||||
selectNodes([node.id]);
|
||||
}
|
||||
|
||||
@@ -1773,7 +1773,7 @@ function registerCustomActions() {
|
||||
registerCustomAction({
|
||||
key: 'openNodeDetail',
|
||||
action: ({ node }: { node: string }) => {
|
||||
setNodeActiveByName(node);
|
||||
setNodeActiveByName(node, 'other');
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1795,7 +1795,7 @@ function registerCustomActions() {
|
||||
registerCustomAction({
|
||||
key: 'showNodeCreator',
|
||||
action: () => {
|
||||
ndvStore.activeNodeName = null;
|
||||
ndvStore.unsetActiveNodeName();
|
||||
|
||||
void nextTick(() => {
|
||||
void onOpenNodeCreatorForTriggerNodes(NODE_CREATOR_OPEN_SOURCES.TAB);
|
||||
@@ -1824,7 +1824,7 @@ function showAddFirstStepIfEnabled() {
|
||||
function updateNodeRoute(nodeId: string) {
|
||||
const nodeUi = workflowsStore.findNodeByPartialId(nodeId);
|
||||
if (nodeUi) {
|
||||
setNodeActive(nodeUi.id);
|
||||
setNodeActive(nodeUi.id, 'other');
|
||||
} else {
|
||||
toast.showToast({
|
||||
title: i18n.baseText('nodeView.showMessage.ndvUrl.missingNodes.title'),
|
||||
@@ -1889,7 +1889,7 @@ watch(
|
||||
watch(
|
||||
() => route.params.nodeId,
|
||||
async (newId) => {
|
||||
if (typeof newId !== 'string' || newId === '') ndvStore.activeNodeName = null;
|
||||
if (typeof newId !== 'string' || newId === '') ndvStore.unsetActiveNodeName();
|
||||
else {
|
||||
updateNodeRoute(newId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user