feat: Add sticky notes support to the new canvas (no-changelog) (#10031)

This commit is contained in:
Alex Grozav
2024-07-15 13:00:52 +03:00
committed by GitHub
parent 9302e33d55
commit cd24c71a9e
32 changed files with 653 additions and 147 deletions

View File

@@ -144,6 +144,7 @@ const {
setNodeActive,
setNodeSelected,
toggleNodeDisabled,
setNodeParameters,
deleteNode,
revertDeleteNode,
addNodes,
@@ -310,6 +311,7 @@ async function initializeView() {
nodeHelpers.updateNodesParameterIssues();
await loadCredentials();
canvasEventBus.emit('fitView');
uiStore.nodeViewInitialized = true;
@@ -553,7 +555,6 @@ function onSetNodeSelected(id?: string) {
}
function onRenameNode(parameterData: IUpdateInformation) {
// The name changed. Do not forget to change the connections as well
if (parameterData.name === 'name' && parameterData.oldValue) {
void renameNode(parameterData.oldValue as string, parameterData.value as string);
}
@@ -569,6 +570,10 @@ async function onRevertRenameNode({
await revertRenameNode(currentName, newName);
}
function onUpdateNodeParameters(id: string, parameters: Record<string, unknown>) {
setNodeParameters(id, parameters);
}
/**
* Credentials
*/
@@ -1157,6 +1162,7 @@ onBeforeUnmount(() => {
@update:node:active="onSetNodeActive"
@update:node:selected="onSetNodeSelected"
@update:node:enabled="onToggleNodeDisabled"
@update:node:parameters="onUpdateNodeParameters"
@run:node="onRunWorkflowToNode"
@delete:node="onDeleteNode"
@create:connection="onCreateConnection"