mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-04-21 12:32:38 +00:00
WebAdmin: allow to reorder and search groups and actions
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -252,20 +252,20 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
||||
{
|
||||
data: "actions",
|
||||
defaultContent: [],
|
||||
searchable: false,
|
||||
orderable: false,
|
||||
render: function(data, type, row) {
|
||||
if (type === 'display') {
|
||||
if (data){
|
||||
let actions = [];
|
||||
for (i = 0; i < data.length; i++){
|
||||
actions.push(data[i].name);
|
||||
}
|
||||
return escapeHTML(actions.join(', '));
|
||||
}
|
||||
return ""
|
||||
if (!data){
|
||||
return "";
|
||||
}
|
||||
return "";
|
||||
let actions = [];
|
||||
let result = "";
|
||||
for (i = 0; i < data.length; i++){
|
||||
actions.push(data[i].name);
|
||||
}
|
||||
result = actions.join(", ");
|
||||
if (type === 'display') {
|
||||
return escapeHTML(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -451,7 +451,6 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
||||
{
|
||||
data: "groups",
|
||||
visible: false,
|
||||
orderable: false,
|
||||
defaultContent: [],
|
||||
render: function(data, type, row) {
|
||||
if (!data){
|
||||
|
||||
Reference in New Issue
Block a user