You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/02/22 20:22:12 UTC

git commit: refs/heads/master - Fix missing 'add' action on instances page

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 <br...@citrix.com>
Authored: Fri Feb 22 11:16:03 2013 -0800
Committer: Brian Federle <br...@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);