mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
fixing insights linkage from smart inventory -> host list view
This commit is contained in:
@@ -86,8 +86,8 @@ export default ['$scope', 'ListDefinition', '$rootScope', 'GetBasePath',
|
||||
$scope.editHost = function(host){
|
||||
$state.go('inventories.edit.hosts.edit', {inventory_id: host.inventory_id, host_id: host.id});
|
||||
};
|
||||
$scope.goToInsights = function(id){
|
||||
$state.go('inventories.edit.hosts.edit.insights', {host_id:id});
|
||||
$scope.goToInsights = function(host){
|
||||
$state.go('inventories.edit.hosts.edit.insights', {inventory_id: host.inventory_id, host_id:host.id});
|
||||
};
|
||||
$scope.deleteHost = function(id, name){
|
||||
var body = '<div class=\"Prompt-bodyQuery\">Are you sure you want to permanently delete the host below from the inventory?</div><div class=\"Prompt-bodyTarget\">' + $filter('sanitize')(name) + '</div>';
|
||||
|
||||
@@ -51,7 +51,7 @@ export default {
|
||||
|
||||
columnClass: 'col-lg-6 col-md-4 col-sm-4 col-xs-5 text-right',
|
||||
insights: {
|
||||
ngClick: "goToInsights(host.id)",
|
||||
ngClick: "goToInsights(host)",
|
||||
icon: 'fa-info',
|
||||
awToolTip: 'View Insights Data',
|
||||
dataPlacement: 'top',
|
||||
|
||||
Reference in New Issue
Block a user