mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
adding "Remediate Inventory" button to inventory
This commit is contained in:
@@ -91,6 +91,10 @@ function InventoriesEdit($scope, $location,
|
|||||||
$state.go('inventories');
|
$state.go('inventories');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.remediateInventory = function(){
|
||||||
|
$state.go('templates.addJobTemplate');
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ['$scope', '$location',
|
export default ['$scope', '$location',
|
||||||
|
|||||||
@@ -188,6 +188,14 @@ function(i18n, InventoryCompletedJobsList) {
|
|||||||
skipGenerator: true
|
skipGenerator: true
|
||||||
},
|
},
|
||||||
completed_jobs: completed_jobs_object
|
completed_jobs: completed_jobs_object
|
||||||
|
},
|
||||||
|
relatedButtons: {
|
||||||
|
remediate_inventory: {
|
||||||
|
ngClick: 'remediateInventory()',
|
||||||
|
ngShow: 'insights_credential!==null',
|
||||||
|
label: i18n._('Remediate Inventory'),
|
||||||
|
class: 'Form-primaryButton'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
};}];
|
};}];
|
||||||
|
|||||||
Reference in New Issue
Block a user