Fix interfaces/displays sometimes showing up in the wrong category

Squashed commit of the following:

commit 2e07fdc946c985a32db2c78a54f61527bb7671ea
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Fri Nov 27 17:59:20 2020 -0500

    Properly scope interfaces to local app group

commit 3d593a4b1c8493db29f934f3a336654ac11e0ea4
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Fri Nov 27 17:47:30 2020 -0500

    Rename localTypes to groups

commit 5b2e882c8f3e700925d54f18bb54cdac98320f55
Author: rijkvanzanten <rijkvanzanten@me.com>
Date:   Fri Nov 27 17:46:55 2020 -0500

    Check tighter for local group
This commit is contained in:
rijkvanzanten
2020-11-27 17:59:37 -05:00
parent 2d8922ffdb
commit c258ba6b9e
16 changed files with 34 additions and 29 deletions

View File

@@ -19,7 +19,7 @@ export default defineDisplay(({ i18n }) => ({
handler: DisplayRelatedValues,
options: options,
types: ['alias', 'string', 'uuid', 'integer', 'bigInteger', 'json'],
localTypes: ['m2m', 'm2o', 'o2m'],
groups: ['m2m', 'm2o', 'o2m'],
fields: (options: Options, { field, collection }) => {
const relatedCollection = getRelatedCollection(collection, field);
const { primaryKeyField } = useCollection(ref(relatedCollection as string));

View File

@@ -30,7 +30,7 @@ export type DisplayConfig = {
handler: DisplayHandlerFunction | Component;
options: null | DeepPartial<Field>[] | Component;
types: readonly typeof types[number][];
localTypes?: readonly typeof localTypes[number][];
groups?: readonly typeof localTypes[number][];
fields?: string[] | DisplayFieldsFunction;
};