CLOUDSTACK-2074: cloudstack UI - Affinity - Instances page - implement "View Affinity Groups" drilldown.

This commit is contained in:
Jessica Wang 2013-04-18 17:31:29 -07:00
parent 7f6e7c6f81
commit 6c98696d8c
2 changed files with 10 additions and 0 deletions

View File

@ -24,8 +24,17 @@
type: { label: 'label.type' }
},
dataProvider: function(args) {
var data = {};
if (args.context != null) {
if ("instances" in args.context) {
$.extend(data, {
virtualmachineid: args.context.instances[0].id
});
}
}
$.ajax({
url: createURL('listAffinityGroups'),
data: data,
success: function(json) {
var items = json.listaffinitygroupsresponse.affinitygroup;
args.response.success({data: items});

View File

@ -284,6 +284,7 @@
viewAll: [
{ path: 'storage.volumes', label: 'label.volumes' },
{ path: 'vmsnapshots', label: 'label.snapshots' },
{ path: 'affinityGroups', label: 'label.affinity.groups' },
{
path: '_zone.hosts',
label: 'label.hosts',