diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index 9f35c6f3b1e..f0d12bc1d2b 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -735,7 +735,10 @@ } } } - + + if("hosts" in args.context) + array1.push("&hostid=" + args.context.hosts[0].id); + $.ajax({ url: createURL("listVirtualMachines&page=" + args.page + "&pagesize=" + pageSize + array1.join("")), dataType: "json", diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 2e34c51375e..f60e4706662 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -6857,7 +6857,11 @@ }, detailView: { - name: "Host details", + name: "Host details", + viewAll: { + label: 'Instances', + path: 'instances' + }, actions: { edit: { label: 'Edit',