mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
improvement(gdrive): remove mime type subblock from upload file tool (#1674)
* remove mime type subblock from upload file tool for gdrive * add UI message to limit every x minutes to <60
This commit is contained in:
+4
@@ -373,11 +373,15 @@ export function ScheduleModal({
|
||||
placeholder='15'
|
||||
type='number'
|
||||
min='1'
|
||||
max='59'
|
||||
className='h-10'
|
||||
autoComplete='off'
|
||||
data-form-type='other'
|
||||
name='minutes-interval'
|
||||
/>
|
||||
<p className='text-muted-foreground text-xs'>
|
||||
Specify the interval in minutes (1-59)
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
@@ -90,17 +90,16 @@ export const GoogleDriveBlock: BlockConfig<GoogleDriveResponse> = {
|
||||
type: 'dropdown',
|
||||
layout: 'full',
|
||||
options: [
|
||||
{ label: 'Auto-detect from file', id: '' },
|
||||
{ label: 'Plain Text (text/plain)', id: 'text/plain' },
|
||||
{ label: 'Google Doc', id: 'application/vnd.google-apps.document' },
|
||||
{ label: 'Google Sheet', id: 'application/vnd.google-apps.spreadsheet' },
|
||||
{ label: 'Google Slides', id: 'application/vnd.google-apps.presentation' },
|
||||
{ label: 'PDF (application/pdf)', id: 'application/pdf' },
|
||||
{ label: 'Plain Text (text/plain)', id: 'text/plain' },
|
||||
{ label: 'HTML (text/html)', id: 'text/html' },
|
||||
{ label: 'CSV (text/csv)', id: 'text/csv' },
|
||||
{ label: 'PDF (application/pdf)', id: 'application/pdf' },
|
||||
],
|
||||
placeholder: 'Select a file type (optional)',
|
||||
condition: { field: 'operation', value: ['create_file', 'upload'] },
|
||||
placeholder: 'Select file type',
|
||||
condition: { field: 'operation', value: 'create_file' },
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user