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