feat: dodaj servisni kontekst u task detalji modal
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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user