diff --git a/web/app/components/tools/provider-list.tsx b/web/app/components/tools/provider-list.tsx index 2c0d52b0ba..863d4ed5f7 100644 --- a/web/app/components/tools/provider-list.tsx +++ b/web/app/components/tools/provider-list.tsx @@ -10,6 +10,8 @@ import LabelFilter from '@/app/components/tools/labels/filter' import Input from '@/app/components/base/input' import ProviderDetail from '@/app/components/tools/provider/detail' import Empty from '@/app/components/plugins/marketplace/empty' +import CustomCreateCard from '@/app/components/tools/provider/custom-create-card' +import WorkflowToolEmpty from '@/app/components/tools/add-tool-modal/empty' import Card from '@/app/components/plugins/card' import CardMoreInfo from '@/app/components/plugins/card/card-more-info' import { useSelector as useAppContextSelector } from '@/context/app-context' @@ -82,10 +84,11 @@ const ProviderList = () => { /> - {filteredCollectionList.length > 0 && ( + {(filteredCollectionList.length > 0 || activeTab !== 'builtin') && (
+ {activeTab === 'api' && } {filteredCollectionList.map(collection => (
{ />
))} + {!filteredCollectionList.length && activeTab === 'workflow' &&
}
)} - {!filteredCollectionList.length && ( + {!filteredCollectionList.length && activeTab === 'builtin' && ( )} { - enable_marketplace && ( + enable_marketplace && activeTab === 'builtin' && ( { containerRef.current?.scrollTo({ top: containerRef.current.scrollHeight, behavior: 'smooth' }) diff --git a/web/app/components/tools/provider/custom-create-card.tsx b/web/app/components/tools/provider/custom-create-card.tsx index d6aa9ab533..424a077527 100644 --- a/web/app/components/tools/provider/custom-create-card.tsx +++ b/web/app/components/tools/provider/custom-create-card.tsx @@ -45,7 +45,7 @@ const Contribute = ({ onRefreshData }: Props) => { return ( <> {isCurrentWorkspaceManager && ( -
+
setIsShowEditCustomCollectionModal(true)}>