diff --git a/frontend/src/components/toolbar/mutilple-dir-operation-toolbar.js b/frontend/src/components/toolbar/mutilple-dir-operation-toolbar.js index 29066e60ea..6b5227d692 100644 --- a/frontend/src/components/toolbar/mutilple-dir-operation-toolbar.js +++ b/frontend/src/components/toolbar/mutilple-dir-operation-toolbar.js @@ -100,7 +100,9 @@ class MutipleDirOperationToolbar extends React.Component { } if (dirent.type === 'file') { - shareBtn = canGenerateShareLink ? [SHARE] : []; + if (!currentRepoInfo.encrypted) { + shareBtn = canGenerateShareLink ? [SHARE] : []; + } menuList = [...shareBtn, TAGS, RELATED_FILES, 'Divider', HISTORY, 'Divider', OPEN_VIA_CLIENT]; if (!Utils.isMarkdownFile(dirent.name)) {