mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-3123: UI > Infrastructure menu > Secondary Storage > Cache Storage > detailView: remove Delete action since there is not API for it.
This commit is contained in:
parent
cb84e8404d
commit
7794e9282b
@ -13522,35 +13522,8 @@
|
||||
},
|
||||
|
||||
detailView: {
|
||||
name: 'Secondary storage details',
|
||||
isMaximized: true,
|
||||
actions: {
|
||||
remove: {
|
||||
label: 'label.action.delete.secondary.storage' ,
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
return 'message.action.delete.secondary.storage';
|
||||
},
|
||||
notification: function(args) {
|
||||
return 'label.action.delete.secondary.storage';
|
||||
}
|
||||
},
|
||||
action: function(args) {
|
||||
$.ajax({
|
||||
url: createURL("deleteImageStore&id=" + args.context.secondarystorages[0].id),
|
||||
dataType: "json",
|
||||
async: true,
|
||||
success: function(json) {
|
||||
args.response.success();
|
||||
}
|
||||
});
|
||||
},
|
||||
notification: {
|
||||
poll: function(args) { args.complete({ data: { resourcestate: 'Destroyed' } }); }
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
name: 'Cache Storage details',
|
||||
isMaximized: true,
|
||||
tabs: {
|
||||
details: {
|
||||
title: 'label.details',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user