mirror of https://github.com/apache/cloudstack.git
Pass projectId to listTags, when viewing a project resource
This commit is contained in:
parent
87e1359826
commit
e2750d8c76
|
|
@ -697,14 +697,18 @@ cloudStack.api = {
|
|||
},
|
||||
dataProvider: function(args) {
|
||||
var resourceId = args.context[contextId][0].id;
|
||||
var data = {
|
||||
resourceId: resourceId,
|
||||
resourceType: resourceType
|
||||
};
|
||||
|
||||
if (args.context.projects) {
|
||||
data.projectid=args.context.projects[0].id;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: createURL('listTags'),
|
||||
data: {
|
||||
listAll: true,
|
||||
resourceId: resourceId,
|
||||
resourceType: resourceType
|
||||
},
|
||||
data: data,
|
||||
success: function(json) {
|
||||
args.response.success({
|
||||
data: json.listtagsresponse ?
|
||||
|
|
|
|||
Loading…
Reference in New Issue