Support file/files in related-values display (#9989)

Implements #9889
This commit is contained in:
Rijk van Zanten
2021-11-22 14:37:39 -05:00
committed by GitHub
parent 094384647d
commit e6d72bc0ec

View File

@@ -33,7 +33,7 @@ export default defineDisplay({
];
},
types: ['alias', 'string', 'uuid', 'integer', 'bigInteger', 'json'],
localTypes: ['m2m', 'm2o', 'o2m', 'translations', 'm2a'],
localTypes: ['m2m', 'm2o', 'o2m', 'translations', 'm2a', 'file', 'files'],
fields: (options: Options | null, { field, collection }) => {
const { relatedCollection, path } = getRelatedCollection(collection, field);
const fieldsStore = useFieldsStore();