Skip to content

Commit

Permalink
feat(web): distinguish awel flow on the ui (#2149)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinesmilelk authored Nov 21, 2024
1 parent 43c86ca commit 0580a54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/pages/construct/flow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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}
Expand Down
Binary file added web/public/pictures/libro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0580a54

Please sign in to comment.