mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-17 19:36:28 +02:00
Fix PrintModal to fetch library file sliced_for_model
- Added query to fetch library file details in PrintModal - Updated backend FileResponse schema to include metadata fields (print_name, print_time_seconds, filament_used_grams, sliced_for_model) - Updated backend get_file endpoint to extract and return metadata fields - Updated frontend LibraryFile interface to include metadata fields - Now slicedForModel is properly extracted from both archives and library files Co-authored-by: cadtoolbox <12723486+cadtoolbox@users.noreply.github.com>
This commit is contained in:
co-authored by
cadtoolbox
parent
5b1e3e7a2b
commit
4cf58f9805
@@ -3802,6 +3802,11 @@ export interface LibraryFile {
|
||||
created_by_username: string | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
// Metadata fields
|
||||
print_name: string | null;
|
||||
print_time_seconds: number | null;
|
||||
filament_used_grams: number | null;
|
||||
sliced_for_model: string | null;
|
||||
}
|
||||
|
||||
export interface LibraryFileListItem {
|
||||
|
||||
Reference in New Issue
Block a user