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 () { ...@@ -620,7 +620,8 @@ EditProjectDialog.prototype.createUserPrivilegeColumns = function () {
var configuration = self.getConfiguration(); var configuration = self.getConfiguration();
self._userPrivilegeColumns = [{ self._userPrivilegeColumns = [{
title: "Name" title: "Name",
orderable: true
}]; }];
var privilegeTypes = configuration.getPrivilegeTypes(); var privilegeTypes = configuration.getPrivilegeTypes();
for (var i = 0; i < privilegeTypes.length; i++) { for (var i = 0; i < privilegeTypes.length; i++) {
...@@ -628,7 +629,8 @@ EditProjectDialog.prototype.createUserPrivilegeColumns = function () { ...@@ -628,7 +629,8 @@ EditProjectDialog.prototype.createUserPrivilegeColumns = function () {
if (type.getObjectType() === "Project") { if (type.getObjectType() === "Project") {
self._userPrivilegeColumns.push({ self._userPrivilegeColumns.push({
"title": type.getCommonName(), "title": type.getCommonName(),
privilegeType: type privilegeType: type,
orderable: false
}); });
} }
} }
...@@ -739,7 +741,7 @@ EditProjectDialog.prototype.initUsersTab = function () { ...@@ -739,7 +741,7 @@ EditProjectDialog.prototype.initUsersTab = function () {
var columns = self.createUserPrivilegeColumns(); var columns = self.createUserPrivilegeColumns();
$(usersTable).DataTable({ $(usersTable).DataTable({
columns: columns, columns: columns,
ordering: false ordering: true
}); });
return Promise.resolve(); 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