align naming

This commit is contained in:
Jacob Overgaard
2024-02-29 11:44:30 +01:00
parent 543098239a
commit d818cc227c
6 changed files with 9 additions and 16 deletions

View File

@@ -14,7 +14,7 @@ export const createManifest: ManifestCollectionAction = {
conditions: [
{
alias: UMB_COLLECTION_ALIAS_CONDITION,
match: 'Umb.Collection.Webhook',
match: 'Umb.Collection.Webhooks',
},
],
};

View File

@@ -6,7 +6,7 @@ import { manifests as collectionViewManifests } from './views/manifests.js';
import { manifests as collectionActionManifests } from './action/manifests.js';
import type { ManifestCollection } from '@umbraco-cms/backoffice/extension-registry';
export const UMB_WEBHOOK_COLLECTION_ALIAS = 'Umb.Collection.Webhook';
export const UMB_WEBHOOK_COLLECTION_ALIAS = 'Umb.Collection.Webhooks';
const collectionManifest: ManifestCollection = {
type: 'collection',

View File

@@ -16,7 +16,7 @@ const tableCollectionView: ManifestCollectionView = {
conditions: [
{
alias: UMB_COLLECTION_ALIAS_CONDITION,
match: 'Umb.Collection.Webhook',
match: 'Umb.Collection.Webhooks',
},
],
};

View File

@@ -1,5 +1,3 @@
export const UMB_WEBHOOK_ENTITY_TYPE = 'webhook';
export const UMB_WEBHOOK_ROOT_ENTITY_TYPE = 'webhook-root';
export const UMB_WEBHOOK_ENTITY_TYPE = 'webhooks';
export type UmbWebhookEntityType = typeof UMB_WEBHOOK_ENTITY_TYPE;
export type UmbWebhookRootEntityType = typeof UMB_WEBHOOK_ROOT_ENTITY_TYPE;

View File

@@ -1,8 +1,8 @@
export const name = 'Umbraco.Core.Webhook';
export const name = 'Umbraco.Core.Webhooks';
export const extensions = [
{
name: 'Webhook Bundle',
alias: 'Umb.Bundle.Webhook',
name: 'Webhooks Bundle',
alias: 'Umb.Bundle.Webhooks',
type: 'bundle',
js: () => import('./manifests.js'),
},

View File

@@ -1,3 +1,4 @@
import { UMB_WEBHOOK_ENTITY_TYPE } from '../entity.js';
import { UmbWebhookRepository } from '../repository/webhooks.repository.js';
import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';
import { UmbBaseController } from '@umbraco-cms/backoffice/class-api';
@@ -10,19 +11,13 @@ export class UmbWebhooksWorkspaceContext extends UmbBaseController implements Um
#repository;
getEntityType() {
return 'webhooks';
}
getEntityName() {
return 'Webhooks';
return UMB_WEBHOOK_ENTITY_TYPE;
}
getUnique() {
return undefined;
}
currentPage = 1;
constructor(host: UmbControllerHostElement) {
super(host);
this.provideContext(UMB_WORKSPACE_CONTEXT, this);