mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +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: {
|
detailView: {
|
||||||
isMaximized: true,
|
isMaximized: true,
|
||||||
actions:{
|
actions:{
|
||||||
deleteacllist:{
|
remove: {
|
||||||
label:'Delete ACL List',
|
label:'Delete ACL List',
|
||||||
messages: {
|
messages: {
|
||||||
confirm: function(args) {
|
confirm: function(args) {
|
||||||
@ -682,26 +682,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
},
|
},
|
||||||
error:function(json){
|
error:function(json){
|
||||||
args.response.error(parseXMLHttpResponse(json));
|
args.response.error(parseXMLHttpResponse(json));
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
notification: {
|
notification: {
|
||||||
poll: pollAsyncJobResult
|
poll: pollAsyncJobResult
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
tabs: {
|
tabs: {
|
||||||
|
|
||||||
details: {
|
details: {
|
||||||
|
|
||||||
title: 'label.details',
|
title: 'label.details',
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
@ -709,7 +703,6 @@
|
|||||||
description: {label:'Description'},
|
description: {label:'Description'},
|
||||||
id:{label:'id'}
|
id:{label:'id'}
|
||||||
}
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
dataProvider: function(args) {
|
dataProvider: function(args) {
|
||||||
var items = args.context.aclLists[0];
|
var items = args.context.aclLists[0];
|
||||||
@ -718,13 +711,11 @@
|
|||||||
actionFilter: function(args) {
|
actionFilter: function(args) {
|
||||||
var allowedActions = [];
|
var allowedActions = [];
|
||||||
if(isAdmin()) {
|
if(isAdmin()) {
|
||||||
allowedActions.push("deleteacllist");
|
allowedActions.push("remove");
|
||||||
|
|
||||||
}
|
}
|
||||||
return allowedActions;
|
return allowedActions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user