mirror of
https://github.com/diced/zipline.git
synced 2025-05-11 18:36:02 +02:00
fix: showing upload button on disabled upload folder (#776)
This commit is contained in:
parent
8ece705eb5
commit
ef0580655d
1 changed files with 7 additions and 5 deletions
|
@ -24,11 +24,13 @@ export default function ViewFolderId({
|
|||
<Group>
|
||||
<Title order={1}>{folder.name}</Title>
|
||||
|
||||
<Link href={`/folder/${folder.id}/upload`}>
|
||||
<ActionIcon variant='outline'>
|
||||
<IconUpload size='1rem' />
|
||||
</ActionIcon>
|
||||
</Link>
|
||||
{folder.allowUploads && (
|
||||
<Link href={`/folder/${folder.id}/upload`}>
|
||||
<ActionIcon variant='outline'>
|
||||
<IconUpload size='1rem' />
|
||||
</ActionIcon>
|
||||
</Link>
|
||||
)}
|
||||
</Group>
|
||||
|
||||
<SimpleGrid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue