Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
fa0b540f
Commit
fa0b540f
authored
Jul 26, 2019
by
Piotr Gawron
Browse files
allow to sort users
parent
ea9c2bce
Changes
1
Show whitespace changes
Inline
Side-by-side
frontend-js/src/main/js/gui/admin/EditProjectDialog.js
View file @
fa0b540f
...
...
@@ -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
:
fals
e
ordering
:
tru
e
});
return
Promise
.
resolve
();
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment