mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
✨ Load node properties on demand (#1089)
* ⚡ Changed rest api endpoint to omit node properties by default. ⚡ Created another endpoint to return all node information based on a list of names * refactor: changed endpoint to POST instead of GET * Changed properties to be optional for node description * Removed eager loading for node properties. All nodes will have their properties fetched when used in a workflow. Works when opening an already saved workflow, creating a new one from scratch or pasting JSON / URLs. * Removing unnecessary dependency
This commit is contained in:
@@ -152,6 +152,10 @@ export const restApi = Vue.extend({
|
||||
return self.restApi().makeRestApiRequest('GET', `/node-types`);
|
||||
},
|
||||
|
||||
getNodesInformation: (nodeList: string[]): Promise<INodeTypeDescription[]> => {
|
||||
return self.restApi().makeRestApiRequest('POST', `/node-types`, {nodeNames: nodeList});
|
||||
},
|
||||
|
||||
// Returns all the parameter options from the server
|
||||
getNodeParameterOptions: (nodeType: string, methodName: string, currentNodeParameters: INodeParameters, credentials?: INodeCredentials): Promise<INodePropertyOptions[]> => {
|
||||
const sendData = {
|
||||
|
||||
Reference in New Issue
Block a user