add inventory updates

This commit is contained in:
Jake McDermott
2018-03-28 21:58:35 -04:00
parent 8da2c3cad2
commit a53f70f0af
8 changed files with 66 additions and 20 deletions

View File

@@ -23,8 +23,6 @@ function atRelaunchCtrl (
const jobObj = new Job();
const jobTemplate = new JobTemplate();
const checkRelaunchPlaybook = (option) => {
jobObj.getRelaunch({
id: vm.job.id
@@ -165,7 +163,7 @@ function atRelaunchCtrl (
inventorySource.postUpdate(vm.job.inventory_source)
.then((postUpdateRes) => {
if (!$state.includes('jobs')) {
$state.go('inventorySyncStdout', { id: postUpdateRes.data.id }, { reload: true });
$state.go('jobz', { id: postUpdateRes.data.id, type: 'inventory' }, { reload: true });
}
});
} else {