Add PrinterProfile and FilamentProfile to ObjectModels; enhance GCodeFile value handling

This commit is contained in:
Tom Butcher 2026-07-20 02:11:09 +01:00
parent d7ad2208d4
commit ce611e52f3
2 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,6 @@
import { Printer } from './models/Printer.js'
import { PrinterProfile } from './models/PrinterProfile.js'
import { FilamentProfile } from './models/FilamentProfile.js'
import { Host } from './models/Host.js'
import { Filament } from './models/Filament.js'
import { Material } from './models/Material.js'
@ -49,6 +51,8 @@ import QuestionCircleIcon from '../components/Icons/QuestionCircleIcon'
export const objectModels = [
Printer,
PrinterProfile,
FilamentProfile,
Host,
Filament,
FilamentSku,
@ -100,6 +104,8 @@ export const objectModels = [
// Re-export individual models for direct access
export {
Printer,
PrinterProfile,
FilamentProfile,
Host,
Filament,
FilamentSku,

View File

@ -144,9 +144,14 @@ export const GCodeFile = {
label: 'Name',
columnFixed: 'left',
type: 'text',
value: null,
required: true,
columnWidth: 200
columnWidth: 200,
value: (objectData) => {
if (objectData?.name == undefined) {
return objectData?.file?.name
}
return objectData?.name
}
},
{
name: 'file',