Added sort dropdown to printer file manager with options for:

- Name (A-Z / Z-A)
- Size (smallest / largest first)
- Date (oldest / newest first)

Directories are always sorted first regardless of sort option.
This commit is contained in:
maziggy
2026-01-20 12:25:10 +01:00
parent 494da46b09
commit c2048d2bab
7 changed files with 444 additions and 387 deletions
+1
View File
@@ -1470,6 +1470,7 @@ export const api = {
is_directory: boolean;
size: number;
path: string;
mtime?: string;
}>;
}>(`/printers/${printerId}/files?path=${encodeURIComponent(path)}`),
getPrinterFileDownloadUrl: (printerId: number, path: string) =>