We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c6c271 commit 3411701Copy full SHA for 3411701
1 file changed
resources/scripts/components/server/files/FileDropdownMenu.tsx
@@ -171,7 +171,9 @@ const FileDropdownMenu = ({ file }: { file: FileObject }) => {
171
<Row onClick={doArchive} icon={faFileArchive} title={'Archive'}/>
172
</Can>
173
}
174
- <Row onClick={doDownload} icon={faFileDownload} title={'Download'}/>
+ {file.isFile &&
175
+ <Row onClick={doDownload} icon={faFileDownload} title={'Download'}/>
176
+ }
177
<Can action={'file.delete'}>
178
<Row onClick={() => setShowConfirmation(true)} icon={faTrashAlt} title={'Delete'} $danger/>
179
0 commit comments