mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3709: UI > Infrastructure menu > Secondary Storage > Cache Storage > detailView > implement Delete action.
This commit is contained in:
parent
c544f34f70
commit
af7587b98a
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue