From c87f3015defc05641ac8a698d2939b7a1be183bb Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Fri, 18 Sep 2026 22:33:05 +0200 Subject: [PATCH] feat(shares): show download count on share cards (#3489) Share cards already rendered the view count; add the download counter next to it using the existing share.downloads field. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- frontend/src/component/Pages/Shares/ShareCard.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/component/Pages/Shares/ShareCard.tsx b/frontend/src/component/Pages/Shares/ShareCard.tsx index 25dc3709..4bd69955 100644 --- a/frontend/src/component/Pages/Shares/ShareCard.tsx +++ b/frontend/src/component/Pages/Shares/ShareCard.tsx @@ -31,6 +31,7 @@ import TimeBadge from "../../Common/TimeBadge.tsx"; import { DenseDivider, SquareMenuItem } from "../../FileManager/ContextMenu/ContextMenu.tsx"; import FileTypeIcon from "../../FileManager/Explorer/FileTypeIcon.tsx"; import Clipboard from "../../Icons/Clipboard.tsx"; +import CloudDownloadOutlined from "../../Icons/CloudDownloadOutlined.tsx"; import DeleteOutlined from "../../Icons/DeleteOutlined.tsx"; import Eye from "../../Icons/Eye.tsx"; import LinkEdit from "../../Icons/LinkEdit.tsx"; @@ -263,6 +264,12 @@ const ShareCard = ({ share, onShareDeleted, onLoad, loading, selecting, selected > {share?.visited ?? 0} + + + + {share?.downloaded ?? 0} + + )}