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/e34de4a6 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e34de4a6 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e34de4a6 Branch: refs/heads/sf-plugins Commit: e34de4a6dd205f3ba0938517a5f6e6edd0dcf79e Parents: 862841a Author: Mike Tutkowski <[email protected]> Authored: Thu Jul 9 09:03:35 2015 -0600 Committer: Mike Tutkowski <[email protected]> Committed: Fri Sep 18 19:28:19 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/e34de4a6/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; } } }
