Add PrinterProfile and FilamentProfile to ObjectModels; enhance GCodeFile value handling
This commit is contained in:
parent
d7ad2208d4
commit
ce611e52f3
@ -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,
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user