Skip to content

Commit cca537d

Browse files
committed
Merge branch 'develop' of https://github.com/Pterodactyl/Panel into develop
2 parents 95b27a8 + 7f9f81a commit cca537d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/scripts/components/server/files/FileDropdownMenu.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@ const FileDropdownMenu = ({ file }: { file: FileObject }) => {
171171
<Row onClick={doArchive} icon={faFileArchive} title={'Archive'}/>
172172
</Can>
173173
}
174-
<Row onClick={doDownload} icon={faFileDownload} title={'Download'}/>
174+
{file.isFile &&
175+
<Row onClick={doDownload} icon={faFileDownload} title={'Download'}/>
176+
}
175177
<Can action={'file.delete'}>
176178
<Row onClick={() => setShowConfirmation(true)} icon={faTrashAlt} title={'Delete'} $danger/>
177179
</Can>

0 commit comments

Comments
 (0)