Show any/all convergence option on root node

This commit is contained in:
Jake McDermott 2020-02-05 15:49:31 -05:00
parent fd60cd1a35
commit b06645e125
No known key found for this signature in database
GPG Key ID: 0E56ED990CDFCB4F
2 changed files with 2 additions and 12 deletions

View File

@ -183,7 +183,7 @@
</select>
</div>
</div>
<div class="form-group Form-formGroup Form-formGroup--singleColumn" ng-show="!(nodeConfig.editNodeIsRoot || nodeConfig.newNodeIsRoot)">
<div id="workflow_node_checkbox_group" class="form-group Form-formGroup Form-formGroup--singleColumn" >
<label for="edgeType" class="Form-inputLabelContainer">
<span class="Form-requiredAsterisk">*</span>
<span class="Form-inputLabel">{{:: strings.get('workflow_maker.CONVERGENCE') }}</span>

View File

@ -720,15 +720,6 @@ export default ['$scope', 'TemplatesService',
/* EDIT NODE FUNCTIONS */
$scope.startEditNode = (nodeToEdit) => {
// Determine if this is a root node
let editNodeIsRoot = false;
$scope.graphState.arrayOfLinksForChart.forEach((link) => {
if (link.source.id === 1 && link.target.id === nodeIdToChartNodeIdMapping[nodeToEdit.id]) {
editNodeIsRoot = true;
return;
}
});
$scope.workflowChangesStarted = true;
if ($scope.linkConfig) {
$scope.cancelLinkForm();
@ -742,8 +733,7 @@ export default ['$scope', 'TemplatesService',
$scope.nodeConfig = {
mode: "edit",
nodeId: nodeToEdit.id,
node: nodeRef[nodeToEdit.id],
editNodeIsRoot,
node: nodeRef[nodeToEdit.id]
};
$scope.graphState.nodeBeingEdited = nodeToEdit.id;