mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
adding "Remediate Inventory" button to inventory
This commit is contained in:
parent
4a5e8eeb96
commit
bf52141f4f
@ -91,6 +91,10 @@ function InventoriesEdit($scope, $location,
|
||||
$state.go('inventories');
|
||||
};
|
||||
|
||||
$scope.remediateInventory = function(){
|
||||
$state.go('templates.addJobTemplate');
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
export default ['$scope', '$location',
|
||||
|
||||
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
};}];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user