admin UI: allow to control columns visibility and ordering

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-05-22 11:45:49 +02:00
parent 1a33b5bb53
commit f536c64043
26 changed files with 679 additions and 397 deletions

View File

@@ -389,7 +389,7 @@
{ "data": "last_modified" }
],
"buttons": [],
"lengthChange": false,
"lengthChange": true,
"columnDefs": [
{
"targets": [0],
@@ -405,13 +405,12 @@
"scrollY": false,
"responsive": true,
"language": {
"processing": '<i class="fas fa-spinner fa-spin fa-3x fa-fw"></i><span class="sr-only">Loading...</span>',
"loadingRecords": "",
"emptyTable": "No files or folders"
},
"initComplete": function (settings, json) {
table.button().add(0, 'refresh');
table.button().add(0, 'pageLength');
//table.button().add(0, 'pageLength');
table.button().add(0, 'download');
{{if gt .Scope 1}}
table.button().add(0, 'addFiles');