chore: make download button work
This commit is contained in:
parent
7caeb4b07b
commit
6ca0f46af3
@ -1,4 +1,18 @@
|
|||||||
import { Avatar, Box, Table, TableContainer, Tbody, Td, Text, Th, Thead, Tr, Wrap, WrapItem } from '@chakra-ui/react';
|
import {
|
||||||
|
Avatar,
|
||||||
|
Box,
|
||||||
|
Link,
|
||||||
|
Table,
|
||||||
|
TableContainer,
|
||||||
|
Tbody,
|
||||||
|
Td,
|
||||||
|
Text,
|
||||||
|
Th,
|
||||||
|
Thead,
|
||||||
|
Tr,
|
||||||
|
Wrap,
|
||||||
|
WrapItem,
|
||||||
|
} from '@chakra-ui/react';
|
||||||
|
|
||||||
import { ProcessState, selectFiles } from './fileListingSlice';
|
import { ProcessState, selectFiles } from './fileListingSlice';
|
||||||
import { useAppSelector } from '../../hooks';
|
import { useAppSelector } from '../../hooks';
|
||||||
@ -38,7 +52,14 @@ export function FileListing() {
|
|||||||
<Td>
|
<Td>
|
||||||
<Wrap>
|
<Wrap>
|
||||||
<WrapItem>播放</WrapItem>
|
<WrapItem>播放</WrapItem>
|
||||||
<WrapItem>下载</WrapItem>
|
<WrapItem>
|
||||||
|
{/* TODO: Use correct file name */}
|
||||||
|
{file.decrypted && (
|
||||||
|
<Link isExternal href={file.decrypted} download="test.flac">
|
||||||
|
下载
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
|
</WrapItem>
|
||||||
<WrapItem>删除</WrapItem>
|
<WrapItem>删除</WrapItem>
|
||||||
</Wrap>
|
</Wrap>
|
||||||
</Td>
|
</Td>
|
||||||
|
Loading…
Reference in New Issue
Block a user