cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessicaw...@apache.org
Subject git commit: updated refs/heads/4.2 to af7587b
Date Fri, 26 Jul 2013 18:25:20 GMT
Updated Branches:
  refs/heads/4.2 c544f34f7 -> af7587b98


CLOUDSTACK-3709: UI > Infrastructure menu > Secondary Storage > Cache Storage >
detailView > implement Delete action.


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

Branch: refs/heads/4.2
Commit: af7587b98a3f75cc044193a026ddeedf38332768
Parents: c544f34
Author: Jessica Wang <jessicawang@apache.org>
Authored: Fri Jul 26 11:23:04 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Fri Jul 26 11:25:10 2013 -0700

----------------------------------------------------------------------
 ui/scripts/system.js | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/af7587b9/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 3d77980..4e94b2e 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -15187,6 +15187,40 @@
                             detailView: {
                                 name: 'Cache Storage details',
                                 isMaximized: true,
+                                actions: {
+                                	remove: {
+                                        label: 'Delete Cache Storage',
+                                        messages: {
+                                            confirm: function(args) {
+                                                return 'Please confirm you want to delete
cache storage.';
+                                            },
+                                            notification: function(args) {
+                                                return 'Delete Cache Storage';
+                                            }
+                                        },
+                                        action: function(args) {
+                                            var data = {
+                                            	id: args.context.cacheStorage[0].id
+                                            };
+                                            $.ajax({
+                                                url: createURL('deleteCacheStore'),
+                                                data: data,
+                                                async: true,
+                                                success: function(json) {
+                                                    args.response.success();
+                                                },
+                                                error: function(data) {
+                                                    args.response.error(parseXMLHttpResponse(data));
+                                                }
+                                            });
+                                        },
+                                        notification: {
+                                            poll: function(args) {
+                                                args.complete();
+                                            }
+                                        }
+                                    }
+                                },
                                 tabs: {
                                     details: {
                                         title: 'label.details',


Mime
View raw message