mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-16 17:28:11 +00:00
Add new field to serializer
This commit is contained in:
@@ -717,6 +717,7 @@ class ParameterTemplateSerializer(
|
|||||||
'checkbox',
|
'checkbox',
|
||||||
'choices',
|
'choices',
|
||||||
'selectionlist',
|
'selectionlist',
|
||||||
|
'enabled',
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|||||||
@@ -38,7 +38,8 @@ export default function ParameterTemplateTable() {
|
|||||||
model_type: {},
|
model_type: {},
|
||||||
choices: {},
|
choices: {},
|
||||||
checkbox: {},
|
checkbox: {},
|
||||||
selectionlist: {}
|
selectionlist: {},
|
||||||
|
enabled: {}
|
||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
@@ -183,7 +184,8 @@ export default function ParameterTemplateTable() {
|
|||||||
accessor: 'choices'
|
accessor: 'choices'
|
||||||
},
|
},
|
||||||
BooleanColumn({
|
BooleanColumn({
|
||||||
accessor: 'enabled'
|
accessor: 'enabled',
|
||||||
|
title: t`Enabled`
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Reference in New Issue
Block a user