cloudstack-commits mailing list archives

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


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

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

----------------------------------------------------------------------
 ui/plugins/sfSharedVolume/sfSharedVolume.js | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0b09c531/ui/plugins/sfSharedVolume/sfSharedVolume.js
----------------------------------------------------------------------
diff --git a/ui/plugins/sfSharedVolume/sfSharedVolume.js b/ui/plugins/sfSharedVolume/sfSharedVolume.js
index baf8aea..70e5208 100644
--- a/ui/plugins/sfSharedVolume/sfSharedVolume.js
+++ b/ui/plugins/sfSharedVolume/sfSharedVolume.js
@@ -11,7 +11,7 @@
         fields: {
           name: { label: 'label.name' },
           iqn: { label: 'IQN' },
-          size: { label: 'Size' },
+          size: { label: 'Size (GB)' },
           miniops: { label: 'Min IOPS' },
           maxiops: { label: 'Max IOPS' },
           burstiops: { label: 'Burst IOPS' }
@@ -28,15 +28,16 @@
             }
           });
         },
-        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];
+        detailView: {
+          name: 'Shared volume details',
+          isMaximized: true,
+          actions: {
+            edit: {
+              label: 'Edit shared volume',
+              compactLabel: 'label.edit',
+              action: function(args) {
+                var sharedVolumeObj = args.context;
+              }
             }
           }
         }


Mime
View raw message