mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 02:30:01 -03:30
Don't show any/all convergence option on root node
This commit is contained in:
@@ -183,7 +183,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="workflow_node_checkbox_group" class="form-group Form-formGroup Form-formGroup--singleColumn" >
|
<div id="workflow_node_checkbox_group" class="form-group Form-formGroup Form-formGroup--singleColumn" ng-show="!(nodeConfig.editNodeIsRoot || nodeConfig.newNodeIsRoot)">
|
||||||
<label class="Form-inputLabelContainer" for="checkbox_group">
|
<label class="Form-inputLabelContainer" for="checkbox_group">
|
||||||
<span translate class="Form-inputLabel">Options</span>
|
<span translate class="Form-inputLabel">Options</span>
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
@@ -720,6 +720,15 @@ export default ['$scope', 'TemplatesService',
|
|||||||
/* EDIT NODE FUNCTIONS */
|
/* EDIT NODE FUNCTIONS */
|
||||||
|
|
||||||
$scope.startEditNode = (nodeToEdit) => {
|
$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;
|
$scope.workflowChangesStarted = true;
|
||||||
if ($scope.linkConfig) {
|
if ($scope.linkConfig) {
|
||||||
$scope.cancelLinkForm();
|
$scope.cancelLinkForm();
|
||||||
@@ -733,7 +742,8 @@ export default ['$scope', 'TemplatesService',
|
|||||||
$scope.nodeConfig = {
|
$scope.nodeConfig = {
|
||||||
mode: "edit",
|
mode: "edit",
|
||||||
nodeId: nodeToEdit.id,
|
nodeId: nodeToEdit.id,
|
||||||
node: nodeRef[nodeToEdit.id]
|
node: nodeRef[nodeToEdit.id],
|
||||||
|
editNodeIsRoot,
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.graphState.nodeBeingEdited = nodeToEdit.id;
|
$scope.graphState.nodeBeingEdited = nodeToEdit.id;
|
||||||
|
|||||||
Reference in New Issue
Block a user