mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Job launch
Fixed job launch of job templates page.
This commit is contained in:
@@ -372,6 +372,7 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
|||||||
return function (params) {
|
return function (params) {
|
||||||
var scope = params.scope,
|
var scope = params.scope,
|
||||||
id = params.id,
|
id = params.id,
|
||||||
|
base = $location.path().replace(/^\//, '').split('/')[0],
|
||||||
url,
|
url,
|
||||||
job_template,
|
job_template,
|
||||||
new_job_id,
|
new_job_id,
|
||||||
@@ -380,7 +381,13 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
|||||||
prompt_for_vars = false,
|
prompt_for_vars = false,
|
||||||
passwords;
|
passwords;
|
||||||
|
|
||||||
url = GetBasePath('jobs') + id + '/';
|
if (base === 'job_templates') {
|
||||||
|
url = GetBasePath('job_templates');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
url = GetBasePath('jobs');
|
||||||
|
}
|
||||||
|
url += id + '/';
|
||||||
|
|
||||||
if (scope.removePostTheJob) {
|
if (scope.removePostTheJob) {
|
||||||
scope.removePostTheJob();
|
scope.removePostTheJob();
|
||||||
|
|||||||
Reference in New Issue
Block a user