浏览代码

fix: process document priority tip (#1712)

tags/0.3.33
zxhlyh 1年前
父节点
当前提交
1350599c0b
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      web/app/components/datasets/create/embedding-process/index.tsx

+ 3
- 2
web/app/components/datasets/create/embedding-process/index.tsx 查看文件

import { DataSourceType } from '@/models/datasets' import { DataSourceType } from '@/models/datasets'
import NotionIcon from '@/app/components/base/notion-icon' import NotionIcon from '@/app/components/base/notion-icon'
import PriorityLabel from '@/app/components/billing/priority-label' import PriorityLabel from '@/app/components/billing/priority-label'
import { Plan } from '@/app/components/billing/type'
import { ZapFast } from '@/app/components/base/icons/src/vender/solid/general' import { ZapFast } from '@/app/components/base/icons/src/vender/solid/general'
import UpgradeBtn from '@/app/components/billing/upgrade-btn' import UpgradeBtn from '@/app/components/billing/upgrade-btn'
import { useProviderContext } from '@/context/provider-context' import { useProviderContext } from '@/context/provider-context'


const EmbeddingProcess: FC<Props> = ({ datasetId, batchId, documents = [], indexingType }) => { const EmbeddingProcess: FC<Props> = ({ datasetId, batchId, documents = [], indexingType }) => {
const { t } = useTranslation() const { t } = useTranslation()
const { enableBilling } = useProviderContext()
const { enableBilling, plan } = useProviderContext()


const getFirstDocument = documents[0] const getFirstDocument = documents[0]


</div> </div>
</div> </div>
{ {
enableBilling && (
enableBilling && plan.type !== Plan.team && (
<div className='flex items-center mb-3 p-3 h-14 bg-white border-[0.5px] border-black/5 shadow-md rounded-xl'> <div className='flex items-center mb-3 p-3 h-14 bg-white border-[0.5px] border-black/5 shadow-md rounded-xl'>
<div className='shrink-0 flex items-center justify-center w-8 h-8 bg-[#FFF6ED] rounded-lg'> <div className='shrink-0 flex items-center justify-center w-8 h-8 bg-[#FFF6ED] rounded-lg'>
<ZapFast className='w-4 h-4 text-[#FB6514]' /> <ZapFast className='w-4 h-4 text-[#FB6514]' />

正在加载...
取消
保存