mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-01 17:16:51 +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}
|
||||
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}
|
||||
|
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