fixing insights linkage from smart inventory -> host list view

This commit is contained in:
Jared Tabor
2017-06-09 11:30:32 -07:00
parent e59dbc6281
commit 4caceb651e
2 changed files with 3 additions and 3 deletions

View File

@@ -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>';

View File

@@ -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',