incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: refs/heads/master - Fix missing 'add' action on instances page
Date Fri, 22 Feb 2013 19:22:12 GMT
Updated Branches:
  refs/heads/master ff4a54ce6 -> df0039368


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/master
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