Преглед на файлове

enhance: improve empty data display for detail panel (#8266)

tags/0.8.1
DDDDD12138 преди 1 година
родител
ревизия
fe8191b899
No account linked to committer's email address
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 3
    3
      web/app/components/workflow/run/meta.tsx
  2. 1
    1
      web/app/components/workflow/run/status.tsx

+ 3
- 3
web/app/components/workflow/run/meta.tsx Целия файл

@@ -16,7 +16,7 @@ type Props = {
const MetaData: FC<Props> = ({
status,
executor,
startTime = 0,
startTime,
time,
tokens,
steps = 1,
@@ -64,7 +64,7 @@ const MetaData: FC<Props> = ({
<div className='my-[5px] w-[72px] h-2 rounded-sm bg-[rgba(0,0,0,0.05)]'/>
)}
{status !== 'running' && (
<span>{formatTime(startTime, t('appLog.dateTimeFormat') as string)}</span>
<span>{startTime ? formatTime(startTime, t('appLog.dateTimeFormat') as string) : '-'}</span>
)}
</div>
</div>
@@ -75,7 +75,7 @@ const MetaData: FC<Props> = ({
<div className='my-[5px] w-[72px] h-2 rounded-sm bg-[rgba(0,0,0,0.05)]'/>
)}
{status !== 'running' && (
<span>{`${time?.toFixed(3)}s`}</span>
<span>{time ? `${time.toFixed(3)}s` : '-'}</span>
)}
</div>
</div>

+ 1
- 1
web/app/components/workflow/run/status.tsx Целия файл

@@ -71,7 +71,7 @@ const StatusPanel: FC<ResultProps> = ({
<div className='w-16 h-2 rounded-sm bg-[rgba(0,0,0,0.05)]' />
)}
{status !== 'running' && (
<span>{`${time?.toFixed(3)}s`}</span>
<span>{time ? `${time?.toFixed(3)}s` : '-'}</span>
)}
</div>
</div>

Loading…
Отказ
Запис