feat(web): distinguish awel flow on the ui (#2149)

This commit is contained in:
sunshinesmilelk
2024-11-21 23:19:15 +08:00
committed by GitHub
parent 43c86caebf
commit 0580a54a10
2 changed files with 2 additions and 1 deletions

View File

@@ -182,7 +182,7 @@ function Flow() {
description={flow.description}
name={flow.name}
key={flow.uid}
logo='/pictures/flow.png'
logo={`${flow.define_type === 'python' ? '/pictures/libro.png' : '/pictures/flow.png'}`}
onClick={() => {
if (flow.define_type === 'json') {
router.push('/construct/flow/canvas?id=' + flow.uid);
@@ -223,6 +223,7 @@ function Flow() {
Tags={
<div>
<Tag color={flow.source === 'DBGPT-WEB' ? 'green' : 'blue'}>{flow.source}</Tag>
{flow.define_type && <Tag color={'purple'}>{flow.define_type}</Tag>}
<Tag color={flow.editable ? 'green' : 'gray'}>{flow.editable ? 'Editable' : 'Can not Edit'}</Tag>
<Tag color={flow.state === 'load_failed' ? 'red' : flow.state === 'running' ? 'green' : 'blue'}>
{flow.state}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB