Files
Umbraco-CMS/src/Umbraco.Web.UI.Client/src/packages/webhook/collection/action/manifests.ts
2024-07-17 10:10:03 +01:00

23 lines
668 B
TypeScript

import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
import type { ManifestCollectionAction, ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
export const createManifest: ManifestCollectionAction = {
type: 'collectionAction',
kind: 'button',
name: 'Create Webhook Collection Action',
alias: 'Umb.CollectionAction.Webhook.Create',
weight: 200,
meta: {
label: '#general_create',
href: 'section/settings/workspace/webhook/create',
},
conditions: [
{
alias: UMB_COLLECTION_ALIAS_CONDITION,
match: 'Umb.Collection.Webhook',
},
],
};
export const manifests: Array<ManifestTypes> = [createManifest];