mirror of
https://github.com/ansible/awx.git
synced 2026-04-11 21:19:22 -02:30
Merge pull request #4934 from mabashian/4906-workflow-launch
Fix workflow details view
This commit is contained in:
@@ -85,27 +85,23 @@ export default ['workflowData',
|
|||||||
// Click binding for the expand/collapse button on the standard out log
|
// Click binding for the expand/collapse button on the standard out log
|
||||||
$scope.stdoutFullScreen = false;
|
$scope.stdoutFullScreen = false;
|
||||||
|
|
||||||
$scope.treeData = WorkflowService.buildTree({
|
WorkflowService.buildTree({
|
||||||
workflowNodes: workflowNodes
|
workflowNodes: workflowNodes
|
||||||
|
}).then(function(data){
|
||||||
|
$scope.treeData = data;
|
||||||
|
|
||||||
|
// TODO: I think that the workflow chart directive (and eventually d3) is meddling with
|
||||||
|
// this treeData object and removing the children object for some reason (?)
|
||||||
|
// This happens on occasion and I think is a race condition (?)
|
||||||
|
if(!$scope.treeData.data.children) {
|
||||||
|
$scope.treeData.data.children = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
$scope.canAddWorkflowJobTemplate = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: I think that the workflow chart directive (and eventually d3) is meddling with
|
|
||||||
// this treeData object and removing the children object for some reason (?)
|
|
||||||
// This happens on occasion and I think is a race condition (?)
|
|
||||||
if(!$scope.treeData.data.children) {
|
|
||||||
$scope.treeData.data.children = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
$scope.canAddWorkflowJobTemplate = false;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// var getTotalHostCount = function(count) {
|
|
||||||
// return Object
|
|
||||||
// .keys(count).reduce((acc, i) => acc += count[i], 0);
|
|
||||||
// };
|
|
||||||
|
|
||||||
|
|
||||||
$scope.toggleStdoutFullscreen = function() {
|
$scope.toggleStdoutFullscreen = function() {
|
||||||
$scope.stdoutFullScreen = !$scope.stdoutFullScreen;
|
$scope.stdoutFullScreen = !$scope.stdoutFullScreen;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user