Skip to content
Snippets Groups Projects
Commit 07a668a6 authored by Adam Laskowski's avatar Adam Laskowski Committed by vkovtun
Browse files

SSDM-13524: disabled assigning new property types to material types in admin UI

parent c262e0e0
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -313,12 +313,27 @@ class EntityTypeFormParametersProperty extends React.PureComponent {
})
}
} else {
openbis.DataType.values.map(dataType => {
options.push({
label: new DataType(dataType).getLabel(),
value: dataType
const objectType = this.getType().objectType.value;
if(objectType == 'materialType') {
//Filter out new data types for materials
const filtered = [openbis.DataType.ARRAY_STRING, openbis.DataType.ARRAY_INTEGER,
openbis.DataType.ARRAY_REAL, openbis.DataType.ARRAY_TIMESTAMP, openbis.DataType.JSON];
openbis.DataType.values.map(dataType => {
if(!filtered.includes(dataType)) {
options.push({
label: new DataType(dataType).getLabel(),
value: dataType
})
}
})
})
} else {
openbis.DataType.values.map(dataType => {
options.push({
label: new DataType(dataType).getLabel(),
value: dataType
})
})
}
}
const { mode, classes } = this.props
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment