Skip to content

Commit 6c98696

Browse files
author
Jessica Wang
committed
CLOUDSTACK-2074: cloudstack UI - Affinity - Instances page - implement "View Affinity Groups" drilldown.
1 parent 7f6e7c6 commit 6c98696

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎ui/scripts/affinity.js‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,17 @@
2424
type: { label: 'label.type' }
2525
},
2626
dataProvider: function(args) {
27+
var data = {};
28+
if (args.context != null) {
29+
if ("instances" in args.context) {
30+
$.extend(data, {
31+
virtualmachineid: args.context.instances[0].id
32+
});
33+
}
34+
}
2735
$.ajax({
2836
url: createURL('listAffinityGroups'),
37+
data: data,
2938
success: function(json) {
3039
var items = json.listaffinitygroupsresponse.affinitygroup;
3140
args.response.success({data: items});

‎ui/scripts/instances.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@
284284
viewAll: [
285285
{ path: 'storage.volumes', label: 'label.volumes' },
286286
{ path: 'vmsnapshots', label: 'label.snapshots' },
287+
{ path: 'affinityGroups', label: 'label.affinity.groups' },
287288
{
288289
path: '_zone.hosts',
289290
label: 'label.hosts',

0 commit comments

Comments
 (0)