mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-17 08:54:27 +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]);
|
}, [ids, server, t]);
|
||||||
|
|
||||||
|
if (!utils) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ContextMenu.Item disabled={ids.length > 1} leftIcon="download" onSelect={onSelect}>
|
<ContextMenu.Item disabled={ids.length > 1} leftIcon="download" onSelect={onSelect}>
|
||||||
{t('page.contextMenu.download', { postProcess: 'sentenceCase' })}
|
{t('page.contextMenu.download', { postProcess: 'sentenceCase' })}
|
||||||
|
|||||||
Reference in New Issue
Block a user