mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-23 00:46:42 +08:00
fix(web): hide folder upload tab for Gmail and Google Drive OAuth JSON upload (#17162)
This commit is contained in:
@@ -370,6 +370,7 @@ const GmailTokenField = ({ value, onChange }: GmailTokenFieldProps) => {
|
||||
onValueChange={handleValueChange}
|
||||
accept={{ '*.json': [FileMimeType.Json] }}
|
||||
maxFileCount={1}
|
||||
showFolderTab={false}
|
||||
description={'Upload your Gmail OAuth JSON file.'}
|
||||
/>
|
||||
|
||||
|
||||
@@ -371,6 +371,7 @@ const GoogleDriveTokenField = ({
|
||||
onValueChange={handleValueChange}
|
||||
accept={{ '*.json': [FileMimeType.Json] }}
|
||||
maxFileCount={1}
|
||||
showFolderTab={false}
|
||||
description="Upload your Google OAuth JSON file."
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user