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:24:23 UTC
git commit: updated refs/heads/master to adc7281
Updated Branches:
refs/heads/master 697b7c947 -> adc72812f
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/adc72812
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/adc72812
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/adc72812
Branch: refs/heads/master
Commit: adc72812fec4c441a24bff5fec138d07ebc55709
Parents: 697b7c9
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:24:15 2013 -0700
----------------------------------------------------------------------
ui/scripts/system.js | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/adc72812/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',