From f458b5cf825010813e1e02a9e86e193d763fbcc1 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 20 Nov 2023 15:57:44 +0100 Subject: [PATCH] register user collection --- .../src/packages/user/user/collection/manifests.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/manifests.ts index a37831747d..8f7ef31e24 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/user/user/collection/manifests.ts @@ -1,4 +1,16 @@ +import { UMB_USER_COLLECTION_REPOSITORY_ALIAS } from './repository/index.js'; import { manifests as collectionRepositoryManifests } from './repository/manifests.js'; import { manifests as collectionViewManifests } from './views/manifests.js'; +import { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry'; -export const manifests = [...collectionRepositoryManifests, ...collectionViewManifests]; +export const UMB_USER_COLLECTION_MANIFEST_ALIAS = 'Umb.Collection.User'; +const collectionManifest: ManifestTypes = { + type: 'collection', + alias: UMB_USER_COLLECTION_MANIFEST_ALIAS, + name: 'User Collection', + meta: { + repositoryAlias: UMB_USER_COLLECTION_REPOSITORY_ALIAS, + }, +}; + +export const manifests = [collectionManifest, ...collectionRepositoryManifests, ...collectionViewManifests];