Commit fa0b540f authored by Piotr Gawron's avatar Piotr Gawron
Browse files

allow to sort users

parent ea9c2bce
......@@ -620,7 +620,8 @@ EditProjectDialog.prototype.createUserPrivilegeColumns = function () {
var configuration = self.getConfiguration();
self._userPrivilegeColumns = [{
title: "Name"
title: "Name",
orderable: true
}];
var privilegeTypes = configuration.getPrivilegeTypes();
for (var i = 0; i < privilegeTypes.length; i++) {
......@@ -628,7 +629,8 @@ EditProjectDialog.prototype.createUserPrivilegeColumns = function () {
if (type.getObjectType() === "Project") {
self._userPrivilegeColumns.push({
"title": type.getCommonName(),
privilegeType: type
privilegeType: type,
orderable: false
});
}
}
......@@ -739,7 +741,7 @@ EditProjectDialog.prototype.initUsersTab = function () {
var columns = self.createUserPrivilegeColumns();
$(usersTable).DataTable({
columns: columns,
ordering: false
ordering: true
});
return Promise.resolve();
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment