fix(editor): Open chat when executing agent node in canvas v2 (#12617)

This commit is contained in:
Tomi Turtiainen 2025-01-15 16:07:24 +02:00 committed by GitHub
parent c3c4a20002
commit 457edd99bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,8 @@
* Getters
*/
import { clearNotifications } from '../../pages/notifications';
export function getCredentialConnectionParameterInputs() {
return cy.getByTestId('credential-connection-parameter');
}
@ -55,5 +57,6 @@ export function setCredentialValues(values: Record<string, string>, save = true)
if (save) {
saveCredential();
closeCredentialModal();
clearNotifications();
}
}

View file

@ -924,11 +924,13 @@ async function onImportWorkflowUrlEvent(data: IDataObject) {
function addImportEventBindings() {
nodeViewEventBus.on('importWorkflowData', onImportWorkflowDataEvent);
nodeViewEventBus.on('importWorkflowUrl', onImportWorkflowUrlEvent);
nodeViewEventBus.on('openChat', onOpenChat);
}
function removeImportEventBindings() {
nodeViewEventBus.off('importWorkflowData', onImportWorkflowDataEvent);
nodeViewEventBus.off('importWorkflowUrl', onImportWorkflowUrlEvent);
nodeViewEventBus.off('openChat', onOpenChat);
}
/**