From 34117017ec6b1863ffe48dd0f762f52354667677 Mon Sep 17 00:00:00 2001 From: Arnaud Lier Date: Sun, 13 Sep 2020 09:35:35 +0200 Subject: [PATCH] fix: only show download button if it's a file --- .../scripts/components/server/files/FileDropdownMenu.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/scripts/components/server/files/FileDropdownMenu.tsx b/resources/scripts/components/server/files/FileDropdownMenu.tsx index 1ccf4b60c..48d53eeb2 100644 --- a/resources/scripts/components/server/files/FileDropdownMenu.tsx +++ b/resources/scripts/components/server/files/FileDropdownMenu.tsx @@ -171,7 +171,9 @@ const FileDropdownMenu = ({ file }: { file: FileObject }) => { } - + {file.isFile && + + } setShowConfirmation(true)} icon={faTrashAlt} title={'Delete'} $danger/>