mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-30 22:02:03 -08:00
fix(editor): Open chat when executing agent node in canvas v2 (#12617)
This commit is contained in:
parent
c3c4a20002
commit
457edd99bb
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue