diff --git a/web/app/components/plugins/marketplace/description/index.tsx b/web/app/components/plugins/marketplace/description/index.tsx index 8cab8373f3..30ddc73595 100644 --- a/web/app/components/plugins/marketplace/description/index.tsx +++ b/web/app/components/plugins/marketplace/description/index.tsx @@ -21,19 +21,19 @@ const Description = async ({

{t('marketplace.discover')} - {t('category.models')} + {t('category.models')} , - {t('category.tools')} + {t('category.tools')} , - {t('category.extensions')} + {t('category.extensions')} {t('marketplace.and')} - {t('category.bundles')} + {t('category.bundles')} {tCommon('operation.in')} {t('marketplace.difyMarketplace')} diff --git a/web/app/components/plugins/marketplace/list/card-wrapper.tsx b/web/app/components/plugins/marketplace/list/card-wrapper.tsx index 3465e095c4..d8e9bcb61c 100644 --- a/web/app/components/plugins/marketplace/list/card-wrapper.tsx +++ b/web/app/components/plugins/marketplace/list/card-wrapper.tsx @@ -25,13 +25,61 @@ const CardWrapper = ({ setFalse: hideInstallFromMarketplace, }] = useBoolean(false) + if (showInstallButton) { + return ( +
+ tag.name)} + /> + } + /> + { + showInstallButton && ( +
+ + +
+ ) + } + { + isShowInstallFromMarketplace && ( + + ) + } +
+ ) + } + return ( -
{ - if (!showInstallButton) - window.open(`${MARKETPLACE_URL_PREFIX}/plugin/${plugin.org}/${plugin.name}`) - }} + ) } - { - isShowInstallFromMarketplace && ( - - ) - } -
+ ) }