mirror of https://github.com/apache/cloudstack.git
Add tag UI support for VPC resource types:
- Vpc, - NetworkACL, - StaticRoute
This commit is contained in:
parent
c67ca89abc
commit
eb68b40e7f
|
|
@ -3764,6 +3764,9 @@
|
|||
id: { label: 'label.id' }
|
||||
}
|
||||
],
|
||||
|
||||
tags: cloudStack.api.tags({ resourceType: 'Vpc', contextId: 'vpc' }),
|
||||
|
||||
dataProvider: function(args) {
|
||||
$.ajax({
|
||||
url: createURL("listVPCs"),
|
||||
|
|
|
|||
|
|
@ -77,6 +77,9 @@
|
|||
addButton: true
|
||||
}
|
||||
},
|
||||
|
||||
tags: cloudStack.api.tags({ resourceType: 'NetworkACL', contextId: 'multiRule' }),
|
||||
|
||||
add: {
|
||||
label: 'Add',
|
||||
action: function(args) {
|
||||
|
|
@ -104,6 +107,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) {
|
||||
|
|
@ -589,6 +605,9 @@
|
|||
addButton: true
|
||||
}
|
||||
},
|
||||
|
||||
tags: cloudStack.api.tags({ resourceType: 'StaticRoute', contextId: 'multiRule' }),
|
||||
|
||||
add: {
|
||||
label: 'Add',
|
||||
action: function(args) {
|
||||
|
|
@ -616,6 +635,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) {
|
||||
|
|
@ -878,6 +910,7 @@
|
|||
created: { label: 'label.date', converter: cloudStack.converters.toLocalDate }
|
||||
}
|
||||
],
|
||||
|
||||
dataProvider: function(args) {
|
||||
$.ajax({
|
||||
url: createURL("listVpnConnections&id=" + args.context.vpnConnection[0].id),
|
||||
|
|
|
|||
Loading…
Reference in New Issue