mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Delete ACL action: Rename to 'remove' to fix UI feedback
This commit is contained in:
parent
24dd6fb66f
commit
62f7ab6ffe
@ -661,7 +661,7 @@
|
||||
detailView: {
|
||||
isMaximized: true,
|
||||
actions:{
|
||||
deleteacllist:{
|
||||
remove: {
|
||||
label:'Delete ACL List',
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
@ -682,26 +682,20 @@
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
},
|
||||
error:function(json){
|
||||
args.response.error(parseXMLHttpResponse(json));
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
notification: {
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
tabs: {
|
||||
|
||||
details: {
|
||||
|
||||
title: 'label.details',
|
||||
fields: [
|
||||
{
|
||||
@ -709,7 +703,6 @@
|
||||
description: {label:'Description'},
|
||||
id:{label:'id'}
|
||||
}
|
||||
|
||||
],
|
||||
dataProvider: function(args) {
|
||||
var items = args.context.aclLists[0];
|
||||
@ -718,13 +711,11 @@
|
||||
actionFilter: function(args) {
|
||||
var allowedActions = [];
|
||||
if(isAdmin()) {
|
||||
allowedActions.push("deleteacllist");
|
||||
allowedActions.push("remove");
|
||||
|
||||
}
|
||||
return allowedActions;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user