diff --git a/src/modules/registratura/components/registry-entry-detail.tsx b/src/modules/registratura/components/registry-entry-detail.tsx index f6f8e84..f1ffe6e 100644 --- a/src/modules/registratura/components/registry-entry-detail.tsx +++ b/src/modules/registratura/components/registry-entry-detail.tsx @@ -9,7 +9,6 @@ import { Copy, ExternalLink, FileText, - FolderOpen, GitBranch, HardDrive, Link2, @@ -34,7 +33,7 @@ import { import type { RegistryEntry } from "../types"; import { DEFAULT_DOC_TYPE_LABELS } from "../types"; import { getOverdueDays } from "../services/registry-service"; -import { shortDisplayPath, shareLabelFor } from "@/config/nas-paths"; +import { pathFileName, shareLabelFor } from "@/config/nas-paths"; import { cn } from "@/shared/lib/utils"; import { useState, useCallback } from "react"; @@ -396,38 +395,41 @@ export function RegistryEntryDetail({
{entry.attachments.map((att) => att.networkPath ? ( -
copyPath(att.networkPath!)} - title="Click pentru a copia calea — lipește în Explorer" + title={att.networkPath} > -
+
-
- - - {shortDisplayPath(att.networkPath)} - -
- - {shareLabelFor(att.networkPath) ?? "NAS"} - - {copiedPath === att.networkPath ? ( - - Copiat! + + {pathFileName(att.networkPath)} + + + + {shareLabelFor(att.networkPath) ?? "NAS"} - ) : ( - - )} + {copiedPath === att.networkPath ? ( + + Copiat! + + ) : ( + + + Copiază + + )} +
-

- {att.networkPath} -

-
+ ) : (