protected function getHeaderActions(): array
{
return [
$this->getTeamHeaderActions(),
Action::make('kanban')
->label('View as Board')
->icon('heroicon-o-view-columns')
->action(function (): void {
$this->setStartingViewMode($this->team->code_prefix, 'kanban');
$this->redirect(IssueBoard::getUrl(['team' => $this->team->code_prefix]));
}),
];
}
}
protected function getHeaderActions(): array
{
return [
$this->getTeamHeaderActions(),
Action::make('kanban')
->label('View as Board')
->icon('heroicon-o-view-columns')
->action(function (): void {
$this->setStartingViewMode($this->team->code_prefix, 'kanban');
$this->redirect(IssueBoard::getUrl(['team' => $this->team->code_prefix]));
}),
];
}
}