adding "Remediate Inventory" button to inventory

This commit is contained in:
Jared Tabor 2017-06-01 09:58:44 -07:00
parent 4a5e8eeb96
commit bf52141f4f
2 changed files with 12 additions and 0 deletions

View File

@ -91,6 +91,10 @@ function InventoriesEdit($scope, $location,
$state.go('inventories');
};
$scope.remediateInventory = function(){
$state.go('templates.addJobTemplate');
};
}
export default ['$scope', '$location',

View File

@ -188,6 +188,14 @@ function(i18n, InventoryCompletedJobsList) {
skipGenerator: true
},
completed_jobs: completed_jobs_object
},
relatedButtons: {
remediate_inventory: {
ngClick: 'remediateInventory()',
ngShow: 'insights_credential!==null',
label: i18n._('Remediate Inventory'),
class: 'Form-primaryButton'
}
}
};}];