Add state, action filters to projects list view

This commit is contained in:
Brian Federle 2011-11-29 14:33:39 -08:00
parent d955564ce1
commit 54d0248fb1
1 changed files with 10 additions and 1 deletions

View File

@ -267,7 +267,8 @@
name: { label: 'Project Name' },
displaytext: { label: 'Display Text' },
domain: { label: 'Domain' },
account: { label: 'Owner' }
account: { label: 'Owner' },
state: { label: 'Status', indicator: { 'Active': 'on', 'Destroyed': 'off' } }
},
dataProvider: function(args) {
@ -319,6 +320,14 @@
success: function(data) {
args.response.success({
_custom: {
getUpdatedItem: function(data) {
return $.extend(data, { state: 'Destroyed' });
},
getActionFilter: function(args) {
return function() {
return [];
};
},
jobId: data.deleteprojectresponse.jobid
}
});