From 799a6814f97676558f5ff157a18dce08c36d9438 Mon Sep 17 00:00:00 2001 From: Richard Szegh Date: Fri, 21 Nov 2025 19:17:27 +0100 Subject: [PATCH] Revert "feat(web): add delete all unused attachments button" This reverts commit ea40bac09064859d247f954d5c3190b9f7511e10. --- web/.gitignore | 1 - web/src/pages/Attachments.tsx | 23 +++++------------------ 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/web/.gitignore b/web/.gitignore index c497f1068..0e8b17df0 100644 --- a/web/.gitignore +++ b/web/.gitignore @@ -5,4 +5,3 @@ dist dist-ssr *.local src/types/proto/store -.vscode diff --git a/web/src/pages/Attachments.tsx b/web/src/pages/Attachments.tsx index 421c8eb1a..6384f5c8c 100644 --- a/web/src/pages/Attachments.tsx +++ b/web/src/pages/Attachments.tsx @@ -1,6 +1,6 @@ import dayjs from "dayjs"; import { includes } from "lodash-es"; -import { PaperclipIcon, SearchIcon, Trash } from "lucide-react"; +import { PaperclipIcon, SearchIcon } from "lucide-react"; import { observer } from "mobx-react-lite"; import { useEffect, useState } from "react"; import { toast } from "react-hot-toast"; @@ -155,26 +155,13 @@ const Attachments = observer(() => { {unusedAttachments.length > 0 && ( <> -
-
-
+
+
+
+
{t("resource.unused-resources")} ({unusedAttachments.length})
-
- -
-
-
{unusedAttachments.map((attachment) => { return (