Import and Export click event

Hello,
I wanted to know from where this import and export event called and in which js they are to be called?

Thanks

Are you looking to change the backend of node-red to do something different?

We've been around this circle before with @dhpatel177 and I'm sure I've had this conversation with him on slack.

He is trying to create a multi-user version of Node-RED where each users flows are saved separately.

@dhpatel177 am I right in that description?

The menu items you have highlighted are defined here: https://github.com/node-red/node-red/blob/89a048e5faab5834d9b44741e8715eb0ca6f5900/packages/node_modules/%40node-red/editor-client/src/js/red.js#L457-L460

When clicked, they trigger the core:show-import-dialog and core:show-export-dialog actions respectively.

Those actions are registered here: https://github.com/node-red/node-red/blob/89a048e5faab5834d9b44741e8715eb0ca6f5900/packages/node_modules/%40node-red/editor-client/src/js/ui/clipboard.js#L735-L736

They call the importNodes and exportNodes functions defined in the same file. These functions display the corresponding dialog.

2 Likes

Thanks @knolleary...

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.