fixed back button with source, and customer in customer lsit clickable

This commit is contained in:
2026-03-21 12:16:04 +01:00
parent d7b42f64b1
commit eecc6cd73e
7 changed files with 38 additions and 23 deletions
@@ -282,7 +282,7 @@ export default function ContractCockpit() {
<div className="flex items-center gap-2 flex-wrap">
<Link
to={`/contracts/${contract.id}`}
state={{ from: 'cockpit', filter: filter !== 'all' ? filter : undefined }}
state={{ from: '/contracts/cockpit' }}
className="font-medium hover:underline"
onClick={(e) => e.stopPropagation()}
>
@@ -399,7 +399,7 @@ export default function ContractCockpit() {
<Link
to={`/contracts/${contract.id}`}
state={{ from: 'cockpit', filter: filter !== 'all' ? filter : undefined }}
state={{ from: '/contracts/cockpit' }}
className="p-2 hover:bg-white hover:bg-opacity-50 rounded"
onClick={(e) => e.stopPropagation()}
title="Zum Vertrag"