huwred
08/05/2024, 8:24 AMhuwred
08/05/2024, 9:07 AMimport { UMB_MEDIA_ENTITY_TYPE } from "@umbraco-cms/backoffice/media";
import { ManifestEntityAction } from "@umbraco-cms/backoffice/extension-registry";
import { MediaEntityAction } from "./media.entity.action";
const entityAction: ManifestEntityAction = {
type: 'entityAction',
kind: 'default',
alias: 'media.entity.action',
name: 'media action',
weight: -100,
forEntityTypes: [
UMB_MEDIA_ENTITY_TYPE
],
api: MediaEntityAction,
meta: {
icon: 'icon-message',
label: 'Resend Validation',
},
conditions: [{
alias: "Umb.Condition.SectionAlias",
match: "Umb.Section.Media"
}]
}
export const manifests = [entityAction];
leekelleher
08/05/2024, 9:17 AMUMB_MEDIA_ROOT_ENTITY_TYPE
to the forEntityTypes
, but then it depends if you want the entity-action at the root or not? 🤔
Do you know if it appears in Settings > Extension Insights listing? Wondering if there's alias clash?huwred
08/05/2024, 9:18 AMhuwred
08/05/2024, 9:26 AMhuwred
08/05/2024, 1:33 PMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by