register a user group collection repository
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { USER_GROUP_REPOSITORY_ALIAS } from '../repository/manifests.js';
|
||||
import { USER_GROUP_COLLECTION_REPOSITORY_ALIAS } from '../repository/manifests.js';
|
||||
import type { UmbUserGroupCollectionFilterModel } from '../types.js';
|
||||
import { UmbCollectionContext } from '@umbraco-cms/backoffice/collection';
|
||||
import type { UserGroupResponseModel } from '@umbraco-cms/backoffice/backend-api';
|
||||
@@ -9,6 +9,6 @@ export class UmbUserGroupCollectionContext extends UmbCollectionContext<
|
||||
UmbUserGroupCollectionFilterModel
|
||||
> {
|
||||
constructor(host: UmbControllerHostElement) {
|
||||
super(host, 'user-group', USER_GROUP_REPOSITORY_ALIAS);
|
||||
super(host, 'user-group', USER_GROUP_COLLECTION_REPOSITORY_ALIAS);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import { UmbUserGroupRepository } from '../repository/user-group.repository.js';
|
||||
import { UmbUserGroupCollectionRepository } from './collection/user-group-collection.repository.js';
|
||||
import { UmbUserGroupItemStore } from './user-group-item.store.js';
|
||||
import { UmbUserGroupStore } from './user-group.store.js';
|
||||
import type { ManifestStore, ManifestRepository, ManifestItemStore } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const USER_GROUP_REPOSITORY_ALIAS = 'Umb.Repository.UserGroup';
|
||||
export const USER_GROUP_COLLECTION_REPOSITORY_ALIAS = 'Umb.Repository.UserGroupCollection';
|
||||
|
||||
const repository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
@@ -12,6 +14,13 @@ const repository: ManifestRepository = {
|
||||
class: UmbUserGroupRepository,
|
||||
};
|
||||
|
||||
const collectionRepository: ManifestRepository = {
|
||||
type: 'repository',
|
||||
alias: USER_GROUP_COLLECTION_REPOSITORY_ALIAS,
|
||||
name: 'User Group Collection Repository',
|
||||
class: UmbUserGroupCollectionRepository,
|
||||
};
|
||||
|
||||
const store: ManifestStore = {
|
||||
type: 'store',
|
||||
alias: 'Umb.Store.UserGroup',
|
||||
@@ -26,4 +35,4 @@ const itemStore: ManifestItemStore = {
|
||||
class: UmbUserGroupItemStore,
|
||||
};
|
||||
|
||||
export const manifests = [repository, store, itemStore];
|
||||
export const manifests = [repository, collectionRepository, store, itemStore];
|
||||
|
||||
Reference in New Issue
Block a user