Add tag UI support for VPC resource types:

-        Vpc,
-        NetworkACL,
-        StaticRoute
This commit is contained in:
Brian Federle 2012-07-24 13:58:02 -07:00
parent 5126ca95e6
commit 8683fc4e05
2 changed files with 36 additions and 0 deletions

View File

@ -3784,6 +3784,9 @@
id: { label: 'label.id' }
}
],
tags: cloudStack.api.tags({ resourceType: 'Vpc', contextId: 'vpc' }),
dataProvider: function(args) {
$.ajax({
url: createURL("listVPCs"),

View File

@ -84,6 +84,9 @@
addButton: true
}
},
tags: cloudStack.api.tags({ resourceType: 'NetworkACL', contextId: 'multiRule' }),
add: {
label: 'Add',
action: function(args) {
@ -111,6 +114,19 @@
}
},
actions: {
edit: {
label: 'label.edit',
// Blank -- edit is just for tags right now
action: function(args) {
args.response.success({
notification: {
label: 'Edit ACL item',
poll: function(args) { args.complete(); }
}
});
}
},
destroy: {
label: 'Remove ACL',
action: function(args) {
@ -596,6 +612,9 @@
addButton: true
}
},
tags: cloudStack.api.tags({ resourceType: 'StaticRoute', contextId: 'multiRule' }),
add: {
label: 'Add',
action: function(args) {
@ -623,6 +642,19 @@
}
},
actions: {
edit: {
label: 'label.edit',
// Blank -- edit is just for tags right now
action: function(args) {
args.response.success({
notification: {
label: 'Edit static route',
poll: function(args) { args.complete(); }
}
});
}
},
destroy: {
label: 'Remove static route',
action: function(args) {
@ -885,6 +917,7 @@
created: { label: 'label.date', converter: cloudStack.converters.toLocalDate }
}
],
dataProvider: function(args) {
$.ajax({
url: createURL("listVpnConnections&id=" + args.context.vpnConnection[0].id),