mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 02:47:35 -02:30
missed dependency
This commit is contained in:
@@ -50,7 +50,19 @@ angular.module('managementJobScheduler', [])
|
|||||||
let path = `${GetBasePath('system_job_templates')}${$stateParams.id}`;
|
let path = `${GetBasePath('system_job_templates')}${$stateParams.id}`;
|
||||||
Rest.setUrl(path);
|
Rest.setUrl(path);
|
||||||
return Rest.get(path).then((res) => res.data);
|
return Rest.get(path).then((res) => res.data);
|
||||||
}]
|
}],
|
||||||
|
UnifiedJobsOptions: ['Rest', 'GetBasePath', '$stateParams', '$q',
|
||||||
|
function(Rest, GetBasePath, $stateParams, $q) {
|
||||||
|
Rest.setUrl(GetBasePath('unified_jobs'));
|
||||||
|
var val = $q.defer();
|
||||||
|
Rest.options()
|
||||||
|
.then(function(data) {
|
||||||
|
val.resolve(data.data);
|
||||||
|
}, function(data) {
|
||||||
|
val.reject(data);
|
||||||
|
});
|
||||||
|
return val.promise;
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$stateExtender.addState({
|
$stateExtender.addState({
|
||||||
|
|||||||
Reference in New Issue
Block a user