mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-2350: UI - Instances menu - change affinity action - list affinity groups that belongs to instance owner.
This commit is contained in:
parent
862b955059
commit
02399d9a2a
|
|
@ -640,9 +640,14 @@
|
|||
name: { label: 'label.name' },
|
||||
type: { label: 'label.type' }
|
||||
},
|
||||
dataProvider: function(args) {
|
||||
dataProvider: function(args) {
|
||||
var data = {
|
||||
domainid: args.context.instances[0].domainid,
|
||||
account: args.context.instances[0].account
|
||||
};
|
||||
$.ajax({
|
||||
url: createURL('listAffinityGroups'),
|
||||
data: data,
|
||||
async: false, //make it sync to avoid dataProvider() being called twice which produces duplicate data
|
||||
success: function(json) {
|
||||
var items = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue