Delete ACL action: Rename to 'remove' to fix UI feedback

This commit is contained in:
Brian Federle 2013-05-21 15:48:11 -07:00
parent 24dd6fb66f
commit 62f7ab6ffe

View File

@ -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;
} }
}); });
} }
}, },