Oeffne Kapitel und Dokument auf derselben Arbeitsflaeche, damit Pfad, Rechte und eigene Reihenfolge beim Lesen erhalten bleiben.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
94ef46d8eb
commit
448e9a06ff
34 files changed
+2998
-696
No files matched your search
@@ -46,8 +46,14 @@ function Result({ item }) {
|
||||
if (item.kind === "matter") return <Link to={matterOpenHref(item)}>{item.title}</Link>;
|
||||
const context = item.contexts?.[0];
|
||||
if (!context) return <span>{item.title}</span>;
|
||||
if (context.kind === "case") return <Link to={`/cases/${context.id}`}>{item.title}</Link>;
|
||||
return <Link to={`/matters/${context.id}`}>{item.title}</Link>;
|
||||
const search = new URLSearchParams();
|
||||
if (context.binding_id) search.set("eintrag", context.binding_id);
|
||||
if (context.chapter_id) search.set("kapitel", context.chapter_id);
|
||||
const query = search.toString();
|
||||
if (context.kind === "case") {
|
||||
return <Link to={`/cases/${context.id}${query ? `?${query}` : ""}`}>{item.title}</Link>;
|
||||
}
|
||||
return <Link to={`/matters/${context.id}${query ? `?${query}` : ""}`}>{item.title}</Link>;
|
||||
}
|
||||
|
||||
function label(kind) {
|
||||
|
||||
Reference in new issue
Block a user