You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2013/07/26 20:25:20 UTC
git commit: updated refs/heads/4.2 to af7587b
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 <je...@apache.org>
Authored: Fri Jul 26 11:23:04 2013 -0700
Committer: Jessica Wang <je...@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',