mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 17:16:52 +08:00
### What problem does this PR solve? Fix: Bugs fixed #10703 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -37,7 +37,7 @@ import {
|
||||
useReactTable,
|
||||
} from '@tanstack/react-table';
|
||||
import { TFunction } from 'i18next';
|
||||
import { ArrowUpDown, ClipboardList, Eye } from 'lucide-react';
|
||||
import { ArrowUpDown, ClipboardList, Eye, MonitorUp } from 'lucide-react';
|
||||
import { FC, useMemo, useState } from 'react';
|
||||
import { useParams } from 'umi';
|
||||
import { RunningStatus } from '../dataset/constant';
|
||||
@ -107,11 +107,20 @@ export const getFileLogsTableColumns = (
|
||||
meta: { cellClassName: 'max-w-[10vw]' },
|
||||
cell: ({ row }) => (
|
||||
<div className="text-text-primary">
|
||||
{row.original.source_from
|
||||
? DataSourceInfo[
|
||||
row.original.source_from as keyof typeof DataSourceInfo
|
||||
].icon
|
||||
: t('localUpload')}
|
||||
{row.original.source_from === 'local' ||
|
||||
row.original.source_from === '' ? (
|
||||
<div className="bg-accent-primary-5 w-6 h-6 rounded-full flex items-center justify-center">
|
||||
<MonitorUp className="text-accent-primary" size={16} />
|
||||
</div>
|
||||
) : (
|
||||
<div className="w-6 h-6 flex items-center justify-center">
|
||||
{
|
||||
DataSourceInfo[
|
||||
row.original.source_from as keyof typeof DataSourceInfo
|
||||
].icon
|
||||
}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
|
||||
@ -14,7 +14,7 @@ import { cn } from '@/lib/utils';
|
||||
import { DataSourceInfo } from '@/pages/user-setting/data-source/contant';
|
||||
import { formatDate } from '@/utils/date';
|
||||
import { ColumnDef } from '@tanstack/table-core';
|
||||
import { ArrowUpDown } from 'lucide-react';
|
||||
import { ArrowUpDown, MonitorUp } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { DatasetActionCell } from './dataset-action-cell';
|
||||
import { ParsingStatusCell } from './parsing-status-cell';
|
||||
@ -126,11 +126,20 @@ export function useDatasetTableColumns({
|
||||
header: t('source'),
|
||||
cell: ({ row }) => (
|
||||
<div className="text-text-primary">
|
||||
{row.original.source_type
|
||||
? DataSourceInfo[
|
||||
row.original.source_type as keyof typeof DataSourceInfo
|
||||
]?.icon || t('localUpload')
|
||||
: t('localUpload')}
|
||||
{row.original.source_type === 'local' ||
|
||||
row.original.source_type === '' ? (
|
||||
<div className="bg-accent-primary-5 w-6 h-6 rounded-full flex items-center justify-center">
|
||||
<MonitorUp className="text-accent-primary" size={16} />
|
||||
</div>
|
||||
) : (
|
||||
<div className="w-6 h-6 flex items-center justify-center">
|
||||
{
|
||||
DataSourceInfo[
|
||||
row.original.source_type as keyof typeof DataSourceInfo
|
||||
].icon
|
||||
}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user