mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-2074: cloudstack UI - Affinity - Instances page - implement "View Affinity Groups" drilldown.
This commit is contained in:
parent
7f6e7c6f81
commit
6c98696d8c
|
|
@ -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});
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue