Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsrobot committed Jan 12, 2024
1 parent 98c40ff commit c2672da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/channel-message.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ export default function ChannelMessage(props) {
</ContextMenu.Trigger>
<ContextMenu.Content>
<ContextMenu.Item onSelect={() => {
JsFileDownloader({ url: e.url })
new JsFileDownloader({ url: e.url, filename: e.name })
}}>Download</ContextMenu.Item>
</ContextMenu.Content>
</ContextMenu.Root>
<Flex gap="3" justify="end">
<Button radius='full' onClick={() => {
JsFileDownloader({ url: e.url })
new JsFileDownloader({ url: e.url, filename: e.name })
}} variant="solid" color="gray">
Download
</Button>
Expand All @@ -295,7 +295,7 @@ export default function ChannelMessage(props) {
</Dialog.Root>;
} else {
return <Button onClick={() => {
JsFileDownloader({ url: e.url })
new JsFileDownloader({ url: e.url, filename: e.name })
}}>
{e.name} <FileIcon />
</Button>;
Expand Down

0 comments on commit c2672da

Please sign in to comment.