Browse Source

Fix: hide qa in cloud version (#729)

tags/0.3.13
KVOJJJin 2 years ago
parent
commit
60ac915c9c
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      web/app/components/datasets/create/step-two/index.tsx

+ 2
- 1
web/app/components/datasets/create/step-two/index.tsx View File

import Switch from '@/app/components/base/switch' import Switch from '@/app/components/base/switch'
import { MessageChatSquare } from '@/app/components/base/icons/src/public/common' import { MessageChatSquare } from '@/app/components/base/icons/src/public/common'
import { useDatasetDetailContext } from '@/context/dataset-detail' import { useDatasetDetailContext } from '@/context/dataset-detail'
import { IS_CE_EDITION } from '@/config'


type Page = DataSourceNotionPage & { workspace_id: string } type Page = DataSourceNotionPage & { workspace_id: string }


<Link className='text-[#155EEF]' href={`/datasets/${datasetId}/settings`}>{t('datasetCreation.stepTwo.datasetSettingLink')}</Link> <Link className='text-[#155EEF]' href={`/datasets/${datasetId}/settings`}>{t('datasetCreation.stepTwo.datasetSettingLink')}</Link>
</div> </div>
)} )}
{indexType === IndexingType.QUALIFIED && (
{IS_CE_EDITION && indexType === IndexingType.QUALIFIED && (
<div className='flex justify-between items-center mt-3 px-5 py-4 rounded-xl bg-gray-50 border border-gray-100'> <div className='flex justify-between items-center mt-3 px-5 py-4 rounded-xl bg-gray-50 border border-gray-100'>
<div className='flex justify-center items-center w-8 h-8 rounded-lg bg-indigo-50'> <div className='flex justify-center items-center w-8 h-8 rounded-lg bg-indigo-50'>
<MessageChatSquare className='w-4 h-4' /> <MessageChatSquare className='w-4 h-4' />

Loading…
Cancel
Save