1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-14 14:21:23 +00:00

add ENABLE_OCR, false by default

This commit is contained in:
zhouwenxuan
2025-04-16 17:07:05 +08:00
parent b398c493c2
commit a3df5ddd0e
4 changed files with 6 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ import { useMetadataStatus } from '../../hooks';
import '../../css/lib-settings.css';
const { enableSeafileAI } = window.app.config;
const { enableSeafileAI, enableOCR: enableSeafileOCR } = window.app.config;
const propTypes = {
toggleDialog: PropTypes.func.isRequired,
@@ -134,7 +134,7 @@ const LibSettingsDialog = ({ repoID, currentRepoInfo, toggleDialog, tab, showMig
{gettext('Tags')}
</NavLink>
</NavItem>
{enableSeafileAI &&
{enableSeafileAI && enableSeafileOCR &&
<NavItem
role="tab"
aria-selected={activeTab === TAB.OCR_SETTING}