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
| Parameter | Type | Description |
|---|---|---|
projectHeaderAction | ProjectHeaderAction | The action configuration to register |
Returns
void
Example
registerProjectHeaderAction({
id: 'deploy-app',
component: ({ project }) => (
<Button onClick={() => navigate(`/deploy/${project.id}`)}>
Deploy App
</Button>
)
});