diff --git a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx
index d8c1b6670c..e480ec5a0c 100644
--- a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx
+++ b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx
@@ -44,6 +44,7 @@ import classNames from '@/utils/classnames'
import PremiumBadge from '@/app/components/base/premium-badge'
import { SparklesSoft } from '@/app/components/base/icons/src/public/common'
import { useModalContextSelector } from '@/context/modal-context'
+import Link from 'next/link'
const PUBLISH_SHORTCUT = ['ctrl', '⇧', 'P']
@@ -150,7 +151,27 @@ const Popup = () => {
icon_info: icon,
description,
})
- notify({ type: 'success', message: t('common.api.actionSuccess') })
+ notify({
+ type: 'success',
+ message: t('datasetPipeline.publishTemplate.success.message'),
+ children: (
+
+
+ {t('datasetPipeline.publishTemplate.success.tip')}
+
+
+ {t('datasetPipeline.publishTemplate.success.learnMore')}
+
+
+ ),
+ })
+ }
+ catch {
+ notify({ type: 'error', message: t('datasetPipeline.publishTemplate.error.message') })
}
finally {
hidePublishingAsCustomizedPipeline()
diff --git a/web/i18n/en-US/dataset-pipeline.ts b/web/i18n/en-US/dataset-pipeline.ts
index 4ca3ddf503..b138eb70f3 100644
--- a/web/i18n/en-US/dataset-pipeline.ts
+++ b/web/i18n/en-US/dataset-pipeline.ts
@@ -39,6 +39,16 @@ const translation = {
title: 'Are you sure to delete this pipeline template?',
content: 'Deleting the pipeline template is irreversible.',
},
+ publishTemplate: {
+ success: {
+ message: 'Pipeline Template Published',
+ tip: 'You can use this template on the creation page.',
+ learnMore: 'Learn more',
+ },
+ error: {
+ message: 'Failed to Publish Pipeline Template',
+ },
+ },
exportDSL: {
successTip: 'Export pipeline DSL successfully',
errorTip: 'Failed to export pipeline DSL',
diff --git a/web/i18n/zh-Hans/dataset-pipeline.ts b/web/i18n/zh-Hans/dataset-pipeline.ts
index 7db9e609f0..8f65cb8be3 100644
--- a/web/i18n/zh-Hans/dataset-pipeline.ts
+++ b/web/i18n/zh-Hans/dataset-pipeline.ts
@@ -39,6 +39,16 @@ const translation = {
title: '要删除此知识流水线模板吗?',
content: '删除知识流水线模板是不可逆的。',
},
+ publishTemplate: {
+ success: {
+ message: '知识流水线模板发布成功',
+ tip: '您可以在创建页使用该模板。',
+ learnMore: '了解更多',
+ },
+ error: {
+ message: '知识流水线模板发布失败',
+ },
+ },
exportDSL: {
successTip: '成功导出知识流水线 DSL',
errorTip: '导出知识流水线 DSL 失败',