mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 05:55:51 +08:00
create & delete
This commit is contained in:
parent
434187f9f0
commit
f213663e17
@ -101,7 +101,7 @@ const MCPCard = ({
|
||||
)}
|
||||
</div>
|
||||
<div className='system-xs-regular text-divider-deep'>/</div>
|
||||
<div className='system-xs-regular truncate text-text-tertiary'>{`${t('tools.mcp.updateTime')} ${formatTimeFromNow(data.update_elapsed_time! * 1000)}`}</div>
|
||||
<div className='system-xs-regular truncate text-text-tertiary'>{`${t('tools.mcp.updateTime')} ${formatTimeFromNow(data.updated_at!)}`}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -97,7 +97,7 @@ const ProviderList = () => {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
{(filteredCollectionList.length > 0 || (activeTab !== 'builtin' && activeTab !== 'mcp')) && (
|
||||
{(filteredCollectionList.length > 0 && (activeTab === 'api' || activeTab === 'workflow')) && (
|
||||
<div className={cn(
|
||||
'relative grid shrink-0 grid-cols-1 content-start gap-4 px-12 pb-4 pt-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4',
|
||||
!filteredCollectionList.length && activeTab === 'workflow' && 'grow',
|
||||
|
@ -53,7 +53,7 @@ export type Collection = {
|
||||
letter?: string
|
||||
// MCP Server
|
||||
server_url?: string
|
||||
update_elapsed_time?: number
|
||||
updated_at?: number
|
||||
}
|
||||
|
||||
export type ToolParameter = {
|
||||
|
@ -131,7 +131,7 @@ export const useDeleteMCP = ({
|
||||
return useMutation({
|
||||
mutationKey: [NAME_SPACE, 'delete-mcp'],
|
||||
mutationFn: (id: string) => {
|
||||
return del('/console/api/workspaces/current/tool-provider/mcp', {
|
||||
return del('/workspaces/current/tool-provider/mcp', {
|
||||
body: {
|
||||
provider_id: id,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user