incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kous...@apache.org
Subject [14/50] [abbrv] git commit: refs/heads/cisco-vnmc-api-integration - Fix missing 'add' action on instances page
Date Wed, 13 Mar 2013 06:25:05 GMT
Fix missing 'add' action on instances page


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

Branch: refs/heads/cisco-vnmc-api-integration
Commit: df0039368b6e918b59ae0776f8c8e30c2ae8aa95
Parents: ff4a54c
Author: Brian Federle <brian.federle@citrix.com>
Authored: Fri Feb 22 11:16:03 2013 -0800
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Fri Feb 22 11:21:59 2013 -0800

----------------------------------------------------------------------
 ui/scripts/instances.js |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/df003936/ui/scripts/instances.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js
index 046962c..8a7c7ad 100644
--- a/ui/scripts/instances.js
+++ b/ui/scripts/instances.js
@@ -135,6 +135,27 @@
 				tagValue: { label: 'Tag Value' }
 			},
 
+      // List view actions
+      actions: {
+        // Add instance wizard
+        add: {
+          label: 'label.vm.add',
+
+          action: {
+            custom: cloudStack.uiCustom.instanceWizard(cloudStack.instanceWizard)
+          },
+
+          messages: {
+            notification: function(args) {
+              return 'label.vm.add';
+            }
+          },
+          notification: {
+            poll: pollAsyncJobResult
+          }
+        }
+      },
+
       dataProvider: function(args) {
 			  var data = {};
 				listViewDataProvider(args, data);


Mime
View raw message