feat: dodaj servisni kontekst u task detalji modal
Some checks failed
ERP CI/CD Pipeline / test (push) Has been cancelled
ERP CI/CD Pipeline / Deploy (server git pull + compose) (push) Has been cancelled

Dodaj gumb 'Postavi servisni kontekst' u zaglavlje modala Radni zadatak detalji i poveži ga s postojećom logikom postavljanja konteksta prema dizalici zadatka.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
mariomitte
2026-07-20 12:00:54 +02:00
parent b92596f6a6
commit 42fcd836ed
2 changed files with 22 additions and 8 deletions

View File

@@ -1364,6 +1364,10 @@ export default function FleetDashboardShell({ initialSection = 'dashboard', page
setServiceRecordCrane(taskCrane ?? null);
setServiceRecordOpen(true);
}}
onSetServiceContext={(task) => {
const taskCrane = cranes.find((item) => String(item.id) === String(task?.vehicle));
handleSetServiceContextForCrane(taskCrane);
}}
/>
</AnimatedPage>
);