mirror of
https://github.com/ansible/awx.git
synced 2026-05-24 00:57:48 -02:30
adjusted the job submission for portal mode
I changed the url for poral mode job submission to /launch instead of /relaunch
This commit is contained in:
@@ -816,7 +816,7 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
|||||||
html,
|
html,
|
||||||
passwords;
|
passwords;
|
||||||
scope.job_template_id = id;
|
scope.job_template_id = id;
|
||||||
if (base === 'job_templates') {
|
if (base === 'job_templates' || base === 'portal') {
|
||||||
url = GetBasePath('job_templates') + id + '/launch/';
|
url = GetBasePath('job_templates') + id + '/launch/';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -888,7 +888,10 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
|
|||||||
}
|
}
|
||||||
scope.removePlaybookLaunchFinished = scope.$on('PlaybookLaunchFinished', function(e, data) {
|
scope.removePlaybookLaunchFinished = scope.$on('PlaybookLaunchFinished', function(e, data) {
|
||||||
//var base = $location.path().replace(/^\//, '').split('/')[0];
|
//var base = $location.path().replace(/^\//, '').split('/')[0];
|
||||||
$location.path('/jobs/' + data.job);
|
if(scope.portalMode===false){
|
||||||
|
$location.path('/jobs/' + data.job);
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (scope.removeStartPlaybookRun) {
|
if (scope.removeStartPlaybookRun) {
|
||||||
|
|||||||
Reference in New Issue
Block a user