Skip to main content

Function: registerProjectHeaderAction()

function registerProjectHeaderAction(projectHeaderAction: ProjectHeaderAction): void

Register a new action button in the project details header.

This allows plugins to add custom action buttons next to the delete button in the project details page header.

Parameters

ParameterTypeDescription
projectHeaderActionProjectHeaderActionThe action configuration to register

Returns

void

Example

registerProjectHeaderAction({
id: 'deploy-app',
component: ({ project }) => (
<Button onClick={() => navigate(`/deploy/${project.id}`)}>
Deploy App
</Button>
)
});

Defined in

src/plugin/registry.tsx:1151