cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtutkow...@apache.org
Subject [20/50] git commit: updated refs/heads/sf-plugins to bcf1c72
Date Tue, 28 Jul 2015 20:15:06 GMT
Start adding related code to delete a volume


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

Branch: refs/heads/sf-plugins
Commit: 7bb5442ae47173cd18617d7d3b0c5971b929aef0
Parents: 6e9c1c6
Author: Mike Tutkowski <mike.tutkowski@solidfire.com>
Authored: Thu Jul 9 09:03:35 2015 -0600
Committer: CloudStack <cloudstack@cloudstack-virtual-machine.(none)>
Committed: Tue Jul 28 13:42:42 2015 -0600

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7bb5442a/ui/plugins/sfSharedVolume/sfSharedVolume.js
----------------------------------------------------------------------
diff --git a/ui/plugins/sfSharedVolume/sfSharedVolume.js b/ui/plugins/sfSharedVolume/sfSharedVolume.js
index a1a72fc..6eb9cf1 100644
--- a/ui/plugins/sfSharedVolume/sfSharedVolume.js
+++ b/ui/plugins/sfSharedVolume/sfSharedVolume.js
@@ -157,8 +157,8 @@
                   },
                   dependsOn: ['availabilityZone', 'account'],
                   select: function(args) {
-                    if (args.data.availabilityZone == null || args.data.availabilityZone
== "" ||
-                        args.data.account == null || args.data.account == "") {
+                    if (args.data.availabilityZone === null || args.data.availabilityZone
=== "" ||
+                        args.data.account === null || args.data.account === "") {
                       return;
                     }
 
@@ -213,14 +213,23 @@
           }
         },
         detailView: {
-          name: 'Shared volume details',
-          isMaximized: true,
+          name: 'label.volume.details',
+          viewAll: {
+            path: 'storage.snapshots',
+            label: 'label.snapshots'
+          },
           actions: {
-            edit: {
-              label: 'Edit shared volume',
-              compactLabel: 'label.edit',
+            deleteVolume: {
+              label: 'Delete Shared Volume',
+              messages: {
+                confirm: function(args) {
+                  return 'Are you sure you would like to delete this shared volume?';
+                },
+                notification: function(args) {
+                  return 'Shared volume deleted';
+                }
+              },
               action: function(args) {
-                var sharedVolumeObj = args.context;
               }
             }
           }


Mime
View raw message