Projects: add project UI fix

Remove actions column from 'Review' users list view -- this was having
buggy behavior due to widget limitations. User can still add/remove
afterwards by going to project detail view.
This commit is contained in:
bfederle 2012-02-07 16:19:41 -08:00
parent c094c1a6db
commit 4a0a2fbf8e

View File

@ -420,32 +420,6 @@
} : {
account: { label: 'Invited Accounts'}
},
actions: !cloudStack.projects.requireInvitation() ? {
destroy: {
label: 'Remove account from project',
action: {
custom: function(args) {
var $instanceRow = args.$instanceRow;
$instanceRow.animate({ opacity: 0.5 });
cloudStack.projects.addUserForm.actions.destroy.action({
context: $.extend(true, {}, cloudStack.context, {
projects: [project],
multiRule: [{
username: $instanceRow.find('td.username span').html()
}]
}),
response: {
success: function(args) {
$instanceRow.remove();
}
}
});
}
}
}
} : {},
dataProvider: function(args) {
setTimeout(function() {
args.response.success({