Fix: stop embedding status display (#523)

This commit is contained in:
KVOJJJin 2023-07-06 10:51:30 +08:00 committed by GitHub
parent 2b94545190
commit d143284d99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 4 deletions

View File

@ -30,6 +30,7 @@
.sourceItem .info {
display: flex;
align-items: center;
z-index: 1;
}
.sourceItem .info .name {
font-weight: 500;
@ -45,6 +46,7 @@
font-size: 12px;
line-height: 18px;
color: #344054;
z-index: 1;
}
.sourceItem .error {
color: #D92D20;

View File

@ -74,7 +74,7 @@ const StepOne = ({
setCurrentFile(file)
}
const hideFilePreview = () => {
setCurrentNotionPage(undefined)
setCurrentFile(undefined)
}
const updateCurrentPage = (page: Page) => {

View File

@ -57,7 +57,7 @@ export const useIndexStatus = () => {
return {
queuing: { color: 'orange', text: t('datasetDocuments.list.status.queuing') }, // waiting
indexing: { color: 'blue', text: t('datasetDocuments.list.status.indexing') }, // indexing splitting parsing cleaning
paused: { color: 'orange', text: t('datasetDocuments.list.status.parsed') }, // paused
paused: { color: 'orange', text: t('datasetDocuments.list.status.paused') }, // paused
error: { color: 'red', text: t('datasetDocuments.list.status.error') }, // error
available: { color: 'green', text: t('datasetDocuments.list.status.available') }, // completedarchived = falseenabled = true
enabled: { color: 'green', text: t('datasetDocuments.list.status.enabled') }, // completedarchived = falseenabled = true

View File

@ -32,7 +32,7 @@ const translation = {
status: {
queuing: 'Queuing',
indexing: 'Indexing',
parsed: 'Parsed',
paused: 'Paused',
error: 'Error',
available: 'Available',
enabled: 'Enabled',

View File

@ -32,7 +32,7 @@ const translation = {
status: {
queuing: '排队中',
indexing: '索引中',
parsed: '已解析',
paused: '已暂停',
error: '错误',
available: '可用',
enabled: '已启用',