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.
- package/dist/index.js +14 -4
- 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.
|
|
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["
|
|
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
|
-
|
|
1415
|
+
properties: copyTask ? copyTask.configuration.properties : {}
|
|
1406
1416
|
},
|
|
1407
1417
|
branches: null,
|
|
1408
1418
|
wrapper: item.wrapper,
|