beta-glozic-workflow 1.8.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +14 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -74,11 +74,11 @@ class Designer extends _react.Component {
74
74
  let data = JSON.parse(JSON.stringify(layout));
75
75
  data.definition.actions = props.Nodes;
76
76
  this.importedJsonFile(data);
77
- } else if (props.options.updatedNodeId && props.options.actionConfig) {
77
+ } else if (props.options.updatedNodeId && props.options.properties) {
78
78
  console.log('on update action config');
79
79
  console.log(props.options);
80
80
  if (this.nodes[props.options.updatedNodeId]) {
81
- this.nodes[props.options.updatedNodeId].configuration["actionConfig"] = props.options.actionConfig;
81
+ this.nodes[props.options.updatedNodeId].configuration["properties"] = props.options.properties;
82
82
  }
83
83
  }
84
84
  }
@@ -548,6 +548,17 @@ class Designer extends _react.Component {
548
548
  this.removeAllEndpointOfNode = this.removeAllEndpointOfNode.bind(this);
549
549
  this.handleSubmitTaskForm = this.handleSubmitTaskForm.bind(this);
550
550
  }
551
+ //Componet By anup
552
+ // componentWillReceiveProps(newProps) {
553
+ // console.log(newProps.workflowobj)
554
+ // console.log(newProps.is_import)
555
+ // console.log('componentWillReceiveProps ', newProps)
556
+ // let self = this;
557
+ // if (newProps.workflowobj) {
558
+ // self.onload();
559
+ // }
560
+ // }
561
+
551
562
  render() {
552
563
  let self = this;
553
564
  const props = this.props;
@@ -1399,10 +1410,9 @@ class Designer extends _react.Component {
1399
1410
  actionImage: item.actionImage,
1400
1411
  isHidden: false,
1401
1412
  nodeType: item.nodeType,
1402
- properties: propertiesClone,
1403
1413
  actionName: copyTask ? copyTask.configuration.actionName : item.name,
1404
1414
  isDisabled: copyTask ? copyTask.configuration.isDisabled : false,
1405
- actionConfig: copyTask ? copyTask.configuration.actionConfig : {}
1415
+ properties: copyTask ? copyTask.configuration.properties : {}
1406
1416
  },
1407
1417
  branches: null,
1408
1418
  wrapper: item.wrapper,
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "ui"
9
9
  ],
10
- "version": "1.8.0",
10
+ "version": "1.12.0",
11
11
  "private": false,
12
12
  "main": "dist/index.js",
13
13
  "module": "dist/index.js",