mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-06 20:10:12 +02:00
remove download icon from non-electron contexts
This commit is contained in:
@@ -43,6 +43,10 @@ export const DownloadAction = ({ ids }: DownloadActionProps) => {
|
||||
}
|
||||
}, [ids, server, t]);
|
||||
|
||||
if (!utils) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<ContextMenu.Item disabled={ids.length > 1} leftIcon="download" onSelect={onSelect}>
|
||||
{t('page.contextMenu.download', { postProcess: 'sentenceCase' })}
|
||||
|
||||
Reference in New Issue
Block a user