mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
app selector support scope
This commit is contained in:
@ -112,6 +112,7 @@ export type CredentialFormSchemaBase = {
|
||||
tooltip?: TypeWithI18N
|
||||
show_on: FormShowOnObject[]
|
||||
url?: string
|
||||
scope?: string
|
||||
}
|
||||
|
||||
export type CredentialFormSchemaTextInput = CredentialFormSchemaBase & { max_length?: number; placeholder?: TypeWithI18N }
|
||||
|
||||
@ -351,6 +351,7 @@ const Form: FC<FormProps> = ({
|
||||
variable,
|
||||
label,
|
||||
required,
|
||||
scope,
|
||||
} = formSchema as (CredentialFormSchemaTextInput | CredentialFormSchemaSecretInput)
|
||||
|
||||
return (
|
||||
@ -366,6 +367,7 @@ const Form: FC<FormProps> = ({
|
||||
</div>
|
||||
<AppSelector
|
||||
disabled={readonly}
|
||||
scope={scope}
|
||||
value={value[variable]}
|
||||
onSelect={item => handleFormChange(variable, { ...item, type: FormTypeEnum.appSelector } as any)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user