mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 04:17:36 -02:30
Fixed the launch from job template list to redirect to jobs page.
This commit is contained in:
@@ -24,6 +24,8 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
|
|||||||
function navigate(canceled) {
|
function navigate(canceled) {
|
||||||
//Decide where to send the user once the modal dialog closes
|
//Decide where to send the user once the modal dialog closes
|
||||||
if (!canceled) {
|
if (!canceled) {
|
||||||
|
console.log('here');
|
||||||
|
console.log('base: ' + base);
|
||||||
if (base == 'jobs') {
|
if (base == 'jobs') {
|
||||||
scope.refreshJob();
|
scope.refreshJob();
|
||||||
}
|
}
|
||||||
@@ -243,7 +245,7 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
|
|||||||
scope.refresh();
|
scope.refresh();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$location.url('/#/jobs');
|
$location.path('/jobs');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.error( function(data, status, headers, config) {
|
.error( function(data, status, headers, config) {
|
||||||
|
|||||||
@@ -570,6 +570,7 @@ angular.module('InventoryHelper', [ 'RestServices', 'Utilities', 'OrganizationLi
|
|||||||
Rest.get()
|
Rest.get()
|
||||||
.success( function(data, status, headers, config) {
|
.success( function(data, status, headers, config) {
|
||||||
if (data.count == 0) {
|
if (data.count == 0) {
|
||||||
|
console.log('emitted');
|
||||||
// no groups exist, show help
|
// no groups exist, show help
|
||||||
scope.$emit('ShowHelp');
|
scope.$emit('ShowHelp');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user