From 77f73e7520bc6521b17f7c24ad94d7ac5c180457 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 15 Oct 2014 17:10:58 -0400 Subject: [PATCH] adjusted the job submission for portal mode I changed the url for poral mode job submission to /launch instead of /relaunch --- awx/ui/static/js/helpers/JobSubmission.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/helpers/JobSubmission.js b/awx/ui/static/js/helpers/JobSubmission.js index 7f0af53663..b8a3b5827f 100644 --- a/awx/ui/static/js/helpers/JobSubmission.js +++ b/awx/ui/static/js/helpers/JobSubmission.js @@ -816,7 +816,7 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi html, passwords; scope.job_template_id = id; - if (base === 'job_templates') { + if (base === 'job_templates' || base === 'portal') { url = GetBasePath('job_templates') + id + '/launch/'; } else { @@ -888,7 +888,10 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi } scope.removePlaybookLaunchFinished = scope.$on('PlaybookLaunchFinished', function(e, data) { //var base = $location.path().replace(/^\//, '').split('/')[0]; - $location.path('/jobs/' + data.job); + if(scope.portalMode===false){ + $location.path('/jobs/' + data.job); + } + }); if (scope.removeStartPlaybookRun) {