Skip to content

Commit

Permalink
Fixes limits sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed Oct 2, 2024
1 parent 3c7dab3 commit bc8a610
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions http_src/vue/page-limits.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ function columns_sorting(col, r0, r1) {
/* In case the values are the same, sort by Name */
if (r0_col == r1_col) {
return sortingFunctions.sortByName(r0.device, r1.device, col ? col.sort : null);
return sortingFunctions.sortByName(r0_col, r1_col, col ? col.sort : null);
} else if (col.id == "limit") {
return sortingFunctions.sortByName(r0.device, r1.device, col ? col.sort : null);
return sortingFunctions.sortByName(r0_col, r1_col, col ? col.sort : null);
} else if (col.id == "current") {
const lower_value = -1;
return sortingFunctions.sortByNumberWithNormalizationValue(r0_col, r1_col, col.sort, lower_value);
Expand Down
2 changes: 1 addition & 1 deletion httpdocs/dist
Submodule dist updated 1 files
+2 −2 ntopng.js
4 changes: 2 additions & 2 deletions httpdocs/tables_config/limits_table.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"id": "limits_table",
"data_url": "lua/rest/v2/get/ntopng/limits.lua",
"use_current_page": false,
"use_current_page": true,
"enable_search": false,
"paging": true,
"paging": false,
"display_empty_rows": true,
"default_sort": {
"column_id": "limit",
Expand Down

0 comments on commit bc8a610

Please sign in to comment.