mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
Set active tab to jobs when initially clicking a workflow_job_template type node
This commit is contained in:
parent
6fc2ba3495
commit
55dc27f243
@ -383,10 +383,6 @@ export default ['$scope', 'TemplatesService', 'JobTemplateModel', 'PromptService
|
||||
}
|
||||
|
||||
if (_.get($scope, 'nodeConfig.node.fullUnifiedJobTemplateObject')) {
|
||||
if (_.get($scope, 'nodeConfig.node.fullUnifiedJobTemplateObject.type') === "job_template") {
|
||||
$scope.activeTab = "jobs";
|
||||
}
|
||||
|
||||
$scope.selectedTemplate = $scope.nodeConfig.node.fullUnifiedJobTemplateObject;
|
||||
|
||||
if ($scope.selectedTemplate.unified_job_type) {
|
||||
@ -406,6 +402,9 @@ export default ['$scope', 'TemplatesService', 'JobTemplateModel', 'PromptService
|
||||
case "job_template":
|
||||
$scope.activeTab = "jobs";
|
||||
break;
|
||||
case "workflow_job_template":
|
||||
$scope.activeTab = "jobs";
|
||||
break;
|
||||
case "project":
|
||||
$scope.activeTab = "project_syncs";
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user