Add tags to edit PF dialog

Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/c839cf68
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/c839cf68
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/c839cf68

Branch: refs/heads/vpc
Commit: c839cf68a6a2003cb02d05231a2278f70852e695
Parents: 87f0ec6
Author: Brian Federle <[email protected]>
Authored: Tue Jul 24 12:12:09 2012 -0700
Committer: Brian Federle <[email protected]>
Committed: Tue Jul 24 15:25:57 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/c839cf68/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 9bf671a..92a8319 100644
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -2658,6 +2658,9 @@
                         addButton: true
                       }
                     },
+
+                    tags: cloudStack.api.tags({ resourceType: 
'PortForwardingRule', contextId: 'multiRule' }),
+
                     add: {
                       label: 'label.add.vm',
                       action: function(args) {  
@@ -2706,6 +2709,19 @@
                       }
                     },
                     actions: {
+                      edit: {
+                        label: 'label.edit',
+
+                        // Blank -- edit is just for tags right now
+                        action: function(args) {
+                          args.response.success({
+                            notification: {
+                              label: 'label.edit.pf',
+                              poll: function(args) { args.complete(); }
+                            }
+                          });
+                        }
+                      },
                       destroy: {
                         label: 'label.remove.pf',
                         action: function(args) {

Reply via email to