You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mt...@apache.org on 2015/09/19 03:31:09 UTC

[03/50] git commit: updated refs/heads/sf-plugins to 157efc3

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/7b93d8a6
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7b93d8a6
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7b93d8a6

Branch: refs/heads/sf-plugins
Commit: 7b93d8a679d8226502e31359c2ce7db4aba7aea9
Parents: d1ba1e2
Author: Mike Tutkowski <mi...@solidfire.com>
Authored: Mon Jul 6 19:34:07 2015 -0600
Committer: Mike Tutkowski <mi...@solidfire.com>
Committed: Fri Sep 18 19:28:17 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/7b93d8a6/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;
+              }
             }
           }
         }