mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
few remaining routes to fixup
This commit is contained in:
parent
7951d26025
commit
7a75f6d12a
@ -16,17 +16,19 @@ export default {
|
||||
return FeaturesService.get();
|
||||
}],
|
||||
inventory_script:
|
||||
[ '$route',
|
||||
[ '$state',
|
||||
'$stateParams',
|
||||
'$q',
|
||||
'Rest',
|
||||
'GetBasePath',
|
||||
'ProcessErrors',
|
||||
function($route, $q, rest, getBasePath, ProcessErrors) {
|
||||
if ($route.current.hasModelKey('inventory_script')) {
|
||||
return $q.when($route.current.params.model.inventory_script);
|
||||
}
|
||||
function($state, $stateParams, $q, rest, getBasePath, ProcessErrors) {
|
||||
// if ($stateParams.inventory_script) {
|
||||
// $stateParams.inventory_script = JSON.parse($stateParams.inventory_script);
|
||||
// return $q.when($stateParams.inventory_script);
|
||||
// }
|
||||
|
||||
var inventoryScriptId = $route.current.params.inventory_script;
|
||||
var inventoryScriptId = $stateParams.inventory_script;
|
||||
|
||||
var url = getBasePath('inventory_scripts') + inventoryScriptId + '/';
|
||||
rest.setUrl(url);
|
||||
|
||||
@ -38,7 +38,8 @@ export default
|
||||
scope.search(list.iterator);
|
||||
|
||||
scope.editCustomInv = function(){
|
||||
$state.transitionTo('inventoryScriptsEdit', {
|
||||
// this.inventory_script = JSON.stringify(this.inventory_script);
|
||||
$state.go('inventoryScriptsEdit',{
|
||||
inventory_script: this.inventory_script.id
|
||||
});
|
||||
};
|
||||
|
||||
@ -252,7 +252,7 @@ export default
|
||||
|
||||
scope.configureSchedule = function() {
|
||||
$state.transitionTo('managementJobsSchedule', {
|
||||
management_job: this.configure_job
|
||||
management_job: this.configure_job.id
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -16,17 +16,17 @@ export default {
|
||||
return FeaturesService.get();
|
||||
}],
|
||||
management_job:
|
||||
[ '$route',
|
||||
[ '$stateParams',
|
||||
'$q',
|
||||
'Rest',
|
||||
'GetBasePath',
|
||||
'ProcessErrors',
|
||||
function($route, $q, rest, getBasePath, ProcessErrors) {
|
||||
if ($route.current.hasModelKey('management_job')) {
|
||||
return $q.when($route.current.params.model.management_job);
|
||||
}
|
||||
function($stateParams, $q, rest, getBasePath, ProcessErrors) {
|
||||
// if ($route.current.hasModelKey('management_job')) {
|
||||
// return $q.when($route.current.params.model.management_job);
|
||||
// }
|
||||
|
||||
var managementJobId = $route.current.params.management_job;
|
||||
var managementJobId = $stateParams.management_job;
|
||||
|
||||
var url = getBasePath('system_job_templates') + managementJobId + '/';
|
||||
rest.setUrl(url);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user