|
|
|
@ -36,6 +36,8 @@ const CardView: FC<ICardViewProps> = ({ appId, isInPanel, className }) => {
|
|
|
|
const setAppDetail = useAppStore(state => state.setAppDetail)
|
|
|
|
const setAppDetail = useAppStore(state => state.setAppDetail)
|
|
|
|
const systemFeatures = useContextSelector(AppContext, state => state.systemFeatures)
|
|
|
|
const systemFeatures = useContextSelector(AppContext, state => state.systemFeatures)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const showMCPCard = isInPanel && (appDetail?.mode === 'advanced-chat' || appDetail?.mode === 'workflow')
|
|
|
|
|
|
|
|
|
|
|
|
const updateAppDetail = async () => {
|
|
|
|
const updateAppDetail = async () => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const res = await fetchAppDetail({ url: '/apps', id: appId })
|
|
|
|
const res = await fetchAppDetail({ url: '/apps', id: appId })
|
|
|
|
@ -138,7 +140,7 @@ const CardView: FC<ICardViewProps> = ({ appId, isInPanel, className }) => {
|
|
|
|
isInPanel={isInPanel}
|
|
|
|
isInPanel={isInPanel}
|
|
|
|
onChangeStatus={onChangeApiStatus}
|
|
|
|
onChangeStatus={onChangeApiStatus}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
{isInPanel && (
|
|
|
|
{showMCPCard && (
|
|
|
|
<MCPServiceCard
|
|
|
|
<MCPServiceCard
|
|
|
|
appInfo={appDetail}
|
|
|
|
appInfo={appDetail}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|