cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtutkow...@apache.org
Subject [07/50] git commit: updated refs/heads/sf-plugins to bcf1c72
Date Tue, 28 Jul 2015 20:14:53 GMT
Add an "actions" section to the rows in the table


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

Branch: refs/heads/sf-plugins
Commit: 0fc4b0c30c816eca2c8f2a419743c11b314f696b
Parents: 4d126d2
Author: Mike Tutkowski <mike.tutkowski@solidfire.com>
Authored: Mon Jul 6 17:26:16 2015 -0600
Committer: CloudStack <cloudstack@cloudstack-virtual-machine.(none)>
Committed: Tue Jul 28 13:42:40 2015 -0600

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0fc4b0c3/ui/plugins/sfSharedVolume/sfSharedVolume.js
----------------------------------------------------------------------
diff --git a/ui/plugins/sfSharedVolume/sfSharedVolume.js b/ui/plugins/sfSharedVolume/sfSharedVolume.js
index d5e13c0..baf8aea 100644
--- a/ui/plugins/sfSharedVolume/sfSharedVolume.js
+++ b/ui/plugins/sfSharedVolume/sfSharedVolume.js
@@ -7,24 +7,38 @@
         return true;
       },
       listView: {
-        id: 'sfClusters',
+        id: 'sfSharedVolumes',
         fields: {
           name: { label: 'label.name' },
-          mvip: { label: 'MVIP' },
-          username: { label: 'label.username' },
-          zonename: { label: 'label.zone.name' }
+          iqn: { label: 'IQN' },
+          size: { label: 'Size' },
+          miniops: { label: 'Min IOPS' },
+          maxiops: { label: 'Max IOPS' },
+          burstiops: { label: 'Burst IOPS' }
         },
         dataProvider: function(args) {
-          plugin.ui.apiCall('listSolidFireClusters', {
+          plugin.ui.apiCall('listSolidFireVolumes', {
             success: function(json) {
-              var sfclusters = json.listsolidfireclustersresponse.sfcluster;
+              var sfvolumes = json.listsolidfirevolumesresponse.sfvolume;
 
-              args.response.success({ data: sfclusters });
+              args.response.success({ data: sfvolumes });
             },
             error: function(errorMessage) {
-              args.response.error(errorMessage)
+              args.response.error(errorMessage);
             }
           });
+        },
+        actions: {
+          delete: {
+            label: "Delete Shared Volume",
+            messages: {
+              confirm: function() { return 'Are you sure you want to delete this shared volume?'
},
+              notification: function() { return 'Deleted shared volume' }
+            },
+            action: function(args) {
+              var instance = args.context.sfSharedVolumes[0];
+            }
+          }
         }
       },
       actions: {


Mime
View raw message