register user group collection
This commit is contained in:
@@ -1 +1,2 @@
|
||||
export * from './repository/index.js';
|
||||
export { UMB_USER_GROUP_COLLECTION_ALIAS } from './manifests.js';
|
||||
|
||||
@@ -1,3 +1,18 @@
|
||||
import { manifests as repositoryManifests } from './repository/manifests.js';
|
||||
import {
|
||||
UMB_USER_GROUP_COLLECTION_REPOSITORY_ALIAS,
|
||||
manifests as repositoryManifests,
|
||||
} from './repository/manifests.js';
|
||||
import { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
export const manifests = [...repositoryManifests];
|
||||
export const UMB_USER_GROUP_COLLECTION_ALIAS = 'Umb.Collection.UserGroup';
|
||||
const collection: ManifestTypes = {
|
||||
type: 'collection',
|
||||
kind: 'default',
|
||||
alias: UMB_USER_GROUP_COLLECTION_ALIAS,
|
||||
name: 'User Group Collection',
|
||||
meta: {
|
||||
repositoryAlias: UMB_USER_GROUP_COLLECTION_REPOSITORY_ALIAS,
|
||||
},
|
||||
};
|
||||
|
||||
export const manifests = [collection, ...repositoryManifests];
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { UMB_USER_GROUP_COLLECTION_ALIAS } from '../collection/index.js';
|
||||
import { UMB_USER_GROUP_REPOSITORY_ALIAS } from '../repository/manifests.js';
|
||||
import { UmbDeleteUserGroupEntityBulkAction } from './delete/delete.action.js';
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
import type { ManifestEntityBulkAction } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const entityType = 'user-group';
|
||||
|
||||
const entityActions: Array<ManifestEntityBulkAction> = [
|
||||
{
|
||||
type: 'entityBulkAction',
|
||||
@@ -17,8 +17,8 @@ const entityActions: Array<ManifestEntityBulkAction> = [
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
alias: 'Umb.Condition.CollectionEntityType',
|
||||
match: entityType,
|
||||
alias: UMB_COLLECTION_ALIAS_CONDITION,
|
||||
match: UMB_USER_GROUP_COLLECTION_ALIAS,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -185,8 +185,8 @@ const manifest = {
|
||||
repositoryAlias: 'My.Repository',
|
||||
},
|
||||
conditions: [{
|
||||
alias: 'Umb.Condition.CollectionEntityType',
|
||||
match: 'my-entity-type',
|
||||
alias: 'Umb.Condition.CollectionAlias',
|
||||
match: 'my-collection-alias',
|
||||
}],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user