Skip to content

Commit

Permalink
fix(editor): Open chat when executing agent node in canvas v2 (#12617)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi authored Jan 15, 2025
1 parent c3c4a20 commit 457edd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cypress/composables/modals/credential-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Getters
*/

import { clearNotifications } from '../../pages/notifications';

export function getCredentialConnectionParameterInputs() {
return cy.getByTestId('credential-connection-parameter');
}
Expand Down Expand Up @@ -55,5 +57,6 @@ export function setCredentialValues(values: Record<string, string>, save = true)
if (save) {
saveCredential();
closeCredentialModal();
clearNotifications();
}
}
2 changes: 2 additions & 0 deletions packages/editor-ui/src/views/NodeView.v2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
/**
Expand Down

0 comments on commit 457edd9

Please sign in to comment.