Update Filament and Printer models for improved data structure
- Added 'createdAt' to the sorters array in the Filament model for enhanced sorting capabilities. - Refactored the Printer model to change 'moonraker.host' to 'host' and introduced a new 'host._id' field for better object representation and clarity. - Updated the 'hostname' field to improve consistency in naming conventions.
This commit is contained in:
parent
ee90e75133
commit
97d5bfcee7
@ -47,7 +47,15 @@ export const Filament = {
|
||||
'updatedAt'
|
||||
],
|
||||
filters: ['_id', 'name', 'type', 'color', 'cost', 'vendor', 'vendor._id'],
|
||||
sorters: ['name', 'createdAt', 'type', 'vendor', 'cost', 'updatedAt'],
|
||||
sorters: [
|
||||
'name',
|
||||
'createdAt',
|
||||
'type',
|
||||
'vendor',
|
||||
'cost',
|
||||
'updatedAt',
|
||||
'createdAt'
|
||||
],
|
||||
group: ['diameter', 'type', 'vendor'],
|
||||
properties: [
|
||||
{
|
||||
|
||||
@ -92,8 +92,23 @@ export const Printer = {
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'moonraker.host',
|
||||
name: 'host',
|
||||
label: 'Host',
|
||||
type: 'object',
|
||||
objectType: 'host',
|
||||
required: true
|
||||
},
|
||||
{
|
||||
name: 'host._id',
|
||||
label: 'Host ID',
|
||||
type: 'id',
|
||||
objectType: 'host',
|
||||
showHyperlink: true,
|
||||
readOnly: true
|
||||
},
|
||||
{
|
||||
name: 'moonraker.host',
|
||||
label: 'Hostname',
|
||||
type: 'text',
|
||||
required: true
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user