cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtutkow...@apache.org
Subject [03/50] git commit: updated refs/heads/sf-plugins to bcf1c72
Date Tue, 28 Jul 2015 20:14:49 GMT
Testing functionality


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

Branch: refs/heads/sf-plugins
Commit: efb00e2de1837788162d8e2d191af6cf094a6f40
Parents: 192e035
Author: Mike Tutkowski <mike.tutkowski@solidfire.com>
Authored: Mon Jul 6 14:43:07 2015 -0600
Committer: CloudStack <cloudstack@cloudstack-virtual-machine.(none)>
Committed: Tue Jul 28 13:42:40 2015 -0600

----------------------------------------------------------------------
 ui/plugins/sfSharedVolume/sfSharedVolume.js | 26 ++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/efb00e2d/ui/plugins/sfSharedVolume/sfSharedVolume.js
----------------------------------------------------------------------
diff --git a/ui/plugins/sfSharedVolume/sfSharedVolume.js b/ui/plugins/sfSharedVolume/sfSharedVolume.js
index 4c8e317..2ac3f68 100644
--- a/ui/plugins/sfSharedVolume/sfSharedVolume.js
+++ b/ui/plugins/sfSharedVolume/sfSharedVolume.js
@@ -4,11 +4,29 @@
       id: 'sfSharedVolume',
       title: 'Shared Volume',
       preFilter: function(args) {
-        return isAdmin();
+        return true;
       },
-      show: function() {
-        return $('<div>').html('Content will go here');
+      listView: {
+        id: 'testPluginInstances',
+        fields: {
+          name: { label: 'label.name' },
+          instancename: { label: 'label.internal.name' },
+          displayname: { label: 'label.display.name' },
+          zonename: { label: 'label.zone.name' }
+        },
+        dataProvider: function(args) {
+          plugin.ui.apiCall('listVirtualMachines', {
+            success: function(json) {
+              var vms = json.listvirtualmachinesresponse.virtualmachine;
+
+              args.response.success({ data: vms });
+            },
+            error: function(errorMessage) {
+              args.response.error(errorMessage)
+            }
+          });
+        }
       }
     });
   };
-}(cloudStack));
+}(cloudStack));
\ No newline at end of file


Mime
View raw message