mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-04 18:40:10 +00:00
feat(web): distinguish awel flow on the ui (#2149)
This commit is contained in:
@@ -182,7 +182,7 @@ function Flow() {
|
|||||||
description={flow.description}
|
description={flow.description}
|
||||||
name={flow.name}
|
name={flow.name}
|
||||||
key={flow.uid}
|
key={flow.uid}
|
||||||
logo='/pictures/flow.png'
|
logo={`${flow.define_type === 'python' ? '/pictures/libro.png' : '/pictures/flow.png'}`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (flow.define_type === 'json') {
|
if (flow.define_type === 'json') {
|
||||||
router.push('/construct/flow/canvas?id=' + flow.uid);
|
router.push('/construct/flow/canvas?id=' + flow.uid);
|
||||||
@@ -223,6 +223,7 @@ function Flow() {
|
|||||||
Tags={
|
Tags={
|
||||||
<div>
|
<div>
|
||||||
<Tag color={flow.source === 'DBGPT-WEB' ? 'green' : 'blue'}>{flow.source}</Tag>
|
<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.editable ? 'green' : 'gray'}>{flow.editable ? 'Editable' : 'Can not Edit'}</Tag>
|
||||||
<Tag color={flow.state === 'load_failed' ? 'red' : flow.state === 'running' ? 'green' : 'blue'}>
|
<Tag color={flow.state === 'load_failed' ? 'red' : flow.state === 'running' ? 'green' : 'blue'}>
|
||||||
{flow.state}
|
{flow.state}
|
||||||
|
BIN
web/public/pictures/libro.png
Normal file
BIN
web/public/pictures/libro.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
Reference in New Issue
Block a user