mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Open chat when executing agent node in canvas v2 (#12617)
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
* Getters
|
* Getters
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { clearNotifications } from '../../pages/notifications';
|
||||||
|
|
||||||
export function getCredentialConnectionParameterInputs() {
|
export function getCredentialConnectionParameterInputs() {
|
||||||
return cy.getByTestId('credential-connection-parameter');
|
return cy.getByTestId('credential-connection-parameter');
|
||||||
}
|
}
|
||||||
@@ -55,5 +57,6 @@ export function setCredentialValues(values: Record<string, string>, save = true)
|
|||||||
if (save) {
|
if (save) {
|
||||||
saveCredential();
|
saveCredential();
|
||||||
closeCredentialModal();
|
closeCredentialModal();
|
||||||
|
clearNotifications();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -924,11 +924,13 @@ async function onImportWorkflowUrlEvent(data: IDataObject) {
|
|||||||
function addImportEventBindings() {
|
function addImportEventBindings() {
|
||||||
nodeViewEventBus.on('importWorkflowData', onImportWorkflowDataEvent);
|
nodeViewEventBus.on('importWorkflowData', onImportWorkflowDataEvent);
|
||||||
nodeViewEventBus.on('importWorkflowUrl', onImportWorkflowUrlEvent);
|
nodeViewEventBus.on('importWorkflowUrl', onImportWorkflowUrlEvent);
|
||||||
|
nodeViewEventBus.on('openChat', onOpenChat);
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeImportEventBindings() {
|
function removeImportEventBindings() {
|
||||||
nodeViewEventBus.off('importWorkflowData', onImportWorkflowDataEvent);
|
nodeViewEventBus.off('importWorkflowData', onImportWorkflowDataEvent);
|
||||||
nodeViewEventBus.off('importWorkflowUrl', onImportWorkflowUrlEvent);
|
nodeViewEventBus.off('importWorkflowUrl', onImportWorkflowUrlEvent);
|
||||||
|
nodeViewEventBus.off('openChat', onOpenChat);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user