mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
TAGS feature implementation throughout CloudStack UI
This commit is contained in:
parent
2ec005c628
commit
ab6ef4bceb
@ -1151,6 +1151,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
tags: cloudStack.api.tags({ resourceType: 'UserVm', contextId: 'instances' }),
|
||||||
|
|
||||||
dataProvider: function(args) {
|
dataProvider: function(args) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL("listVirtualMachines&id=" + args.context.instances[0].id),
|
url: createURL("listVirtualMachines&id=" + args.context.instances[0].id),
|
||||||
|
|||||||
@ -757,6 +757,10 @@
|
|||||||
account: { label: 'label.account' }
|
account: { label: 'label.account' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
tags: cloudStack.api.tags({ resourceType: 'Network', contextId: 'networks' }),
|
||||||
|
|
||||||
|
|
||||||
dataProvider: function(args) {
|
dataProvider: function(args) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL("listNetworks&id=" + args.context.networks[0].id + "&listAll=true"), //pass "&listAll=true" to "listNetworks&id=xxxxxxxx" for now before API gets fixed.
|
url: createURL("listNetworks&id=" + args.context.networks[0].id + "&listAll=true"), //pass "&listAll=true" to "listNetworks&id=xxxxxxxx" for now before API gets fixed.
|
||||||
@ -1473,6 +1477,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
tags: cloudStack.api.tags({ resourceType: 'PublicIpAddress', contextId: 'ipAddresses' }),
|
||||||
|
|
||||||
dataProvider: function(args) {
|
dataProvider: function(args) {
|
||||||
var items = args.context.ipAddresses;
|
var items = args.context.ipAddresses;
|
||||||
|
|
||||||
@ -2782,6 +2788,9 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
tags: cloudStack.api.tags({ resourceType: 'SecurityGroup', contextId: 'securityGroups' }),
|
||||||
|
|
||||||
|
|
||||||
dataProvider: function(args) {
|
dataProvider: function(args) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL("listSecurityGroups&id="+args.id),
|
url: createURL("listSecurityGroups&id="+args.id),
|
||||||
|
|||||||
@ -1004,6 +1004,9 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
tags: cloudStack.api.tags({ resourceType: 'Volume', contextId: 'volumes' }),
|
||||||
|
|
||||||
|
|
||||||
dataProvider: function(args) {
|
dataProvider: function(args) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL("listVolumes&id=" + args.context.volumes[0].id),
|
url: createURL("listVolumes&id=" + args.context.volumes[0].id),
|
||||||
@ -1269,6 +1272,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
tags: cloudStack.api.tags({ resourceType: 'Snapshot', contextId: 'snapshots' }),
|
||||||
|
|
||||||
dataProvider: function(args) {
|
dataProvider: function(args) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL("listSnapshots&id=" + args.context.snapshots[0].id),
|
url: createURL("listSnapshots&id=" + args.context.snapshots[0].id),
|
||||||
|
|||||||
@ -680,6 +680,9 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
tags: cloudStack.api.tags({ resourceType: 'Template', contextId: 'templates' }),
|
||||||
|
|
||||||
|
|
||||||
dataProvider: function(args) {
|
dataProvider: function(args) {
|
||||||
var jsonObj = args.context.templates[0];
|
var jsonObj = args.context.templates[0];
|
||||||
var apiCmd = "listTemplates&templatefilter=self&id=" + jsonObj.id;
|
var apiCmd = "listTemplates&templatefilter=self&id=" + jsonObj.id;
|
||||||
@ -823,6 +826,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
action: function(args) {
|
action: function(args) {
|
||||||
var array1 = [];
|
var array1 = [];
|
||||||
array1.push("&name=" + todb(args.data.name));
|
array1.push("&name=" + todb(args.data.name));
|
||||||
@ -1193,6 +1197,8 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
tags: cloudStack.api.tags({ resourceType: 'ISO', contextId: 'isos' }),
|
||||||
|
|
||||||
dataProvider: function(args) {
|
dataProvider: function(args) {
|
||||||
var jsonObj = args.context.isos[0];
|
var jsonObj = args.context.isos[0];
|
||||||
var apiCmd = "listIsos&isofilter=self&id="+jsonObj.id;
|
var apiCmd = "listIsos&isofilter=self&id="+jsonObj.id;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user