Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quick as is fix. Enable sorting in bRestore by setting the sorting attribute using setSortingEnabled() on the bRestoreTable objects. For FileList and FileRevisions we disable the sorting during the filling of the table (to not make it to slow) and explicitly sort the FileList on the filenames in them ascending and the FileRevisions on the revision date descending (so you get the newest revision first in the list.) Some sorting doesn't work or doesn't work right as we need to write new sorting operators which are not there. That is something we won't solve any time soon. The restore list also has the sorting attribute enabled so you can use sorting in that view too. Fixes #215: Sortable tables in bRestore Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
- Loading branch information
1 parent
e77c251
commit eda0213
Showing
2 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters