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

This commit is contained in:
Jessica Wang 2013-07-26 11:23:04 -07:00
parent c544f34f70
commit af7587b98a
1 changed files with 34 additions and 0 deletions

View File

@ -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',