mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
latest params
This commit is contained in:
@ -19,7 +19,7 @@ const MCPServerParamItem = ({
|
||||
<div className='flex h-6 items-center gap-2'>
|
||||
<div className='system-xs-medium text-text-secondary'>{data.label}</div>
|
||||
<div className='system-xs-medium text-text-quaternary'>·</div>
|
||||
<div className='system-xs-medium text-text-secondary'>{data.name}</div>
|
||||
<div className='system-xs-medium text-text-secondary'>{data.variable}</div>
|
||||
<div className='system-xs-medium text-text-tertiary'>{data.type}</div>
|
||||
</div>
|
||||
<Textarea
|
||||
|
||||
@ -20,6 +20,7 @@ import { useAppContext } from '@/context/app-context'
|
||||
import type { AppSSO } from '@/types/app'
|
||||
import Indicator from '@/app/components/header/indicator'
|
||||
import MCPServerModal from '@/app/components/tools/mcp/mcp-server-modal'
|
||||
import { useAppWorkflow } from '@/service/use-workflow'
|
||||
import cn from '@/utils/classnames'
|
||||
|
||||
export type IAppCardProps = {
|
||||
@ -36,6 +37,8 @@ function MCPServiceCard({
|
||||
const [genLoading, setGenLoading] = useState(false)
|
||||
const [showConfirmDelete, setShowConfirmDelete] = useState(false)
|
||||
|
||||
const { data: currentWorkflow } = useAppWorkflow(appInfo.id)
|
||||
|
||||
const toggleDisabled = !isCurrentWorkspaceEditor
|
||||
const runningStatus = appInfo.enable_site // TODO
|
||||
const { app_base_url, access_token } = appInfo.site ?? {}
|
||||
@ -56,6 +59,9 @@ function MCPServiceCard({
|
||||
|
||||
const [showMCPServerModal, setShowMCPServerModal] = useState(false)
|
||||
|
||||
if (!currentWorkflow || !currentWorkflow.graph)
|
||||
return null
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={cn('w-full max-w-full rounded-xl border-l-[0.5px] border-t border-effects-highlight')}>
|
||||
|
||||
Reference in New Issue
Block a user