Add tags to FW rule multi-edit
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/003c6258 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/003c6258 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/003c6258 Branch: refs/heads/master Commit: 003c62583cafa05e260f0d0aad32c653554ea6e7 Parents: 50322b4 Author: Brian Federle <brian.fede...@citrix.com> Authored: Tue Jul 24 15:21:54 2012 -0700 Committer: Brian Federle <brian.fede...@citrix.com> Committed: Tue Jul 24 15:22:37 2012 -0700 ---------------------------------------------------------------------- ui/scripts/network.js | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/003c6258/ui/scripts/network.js ---------------------------------------------------------------------- diff --git a/ui/scripts/network.js b/ui/scripts/network.js index cbfa4ec..0a8f970 100644 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -1695,6 +1695,9 @@ addButton: true } }, + + tags: cloudStack.api.tags({ resourceType: 'FirewallRule', contextId: 'multiRule' }), + add: { label: 'label.add', action: function(args) { @@ -1722,6 +1725,19 @@ } }, actions: { + edit: { + label: 'label.edit', + + // Blank -- edit is just for tags right now + action: function(args) { + args.response.success({ + notification: { + label: 'Edit firewall rule', + poll: function(args) { args.complete(); } + } + }); + } + }, destroy: { label: 'label.action.delete.firewall', action: function(args) {